From: Juozas B. <ba...@ce...> - 2003-01-03 17:53:06
|
postgres closes connection if it detects error in protocol, something like this can produce this error: char c = '\u0000'; String query = "select " + c; statement.execute(query);// error not detected by driver, server closes connection; I am not sure about all driver versions, but it must be possible to reproduce on most of them. ----- Original Message ----- From: "cheeser" <hib...@ch...> To: <hib...@li...> Sent: Friday, January 03, 2003 5:40 AM Subject: [Hibernate] saving to pgsql I'm having troubles getting my objects to persist. In my pgsql.err, i get error messages about "unexpected EOF on client connection." Has anyone seen this? I create the bean and call session.save() with it. When I'm done with the session, I call flush() and close() (trying to force it) and nothing gets saved. Here's part of my hibernate.xml: <class name="org.cheeseronline.antfarm.system.CommentBean" table="CommentTable" discriminator-value="Comment"> <id name="PrimaryKey"> <generator class="cirrus.hibernate.id.HiLoGenerator"> <param>uid_table</param> <param>next_hi_value_column</param> </generator> </id> <discriminator column="subclass" type="string"/> <property name="Text" type="string" column="Value"/> <property name="DateEntered" type="date"/> </class> There are other classes in there, but the code is generated so it all looks the same. Can anyone see what I'm doing wrong? cheeser ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ hibernate-devel mailing list hib...@li... https://lists.sourceforge.net/lists/listinfo/hibernate-devel |