Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 579F61337BA3 for ; Wed, 23 Mar 2011 20:36:15 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 03848-02 for ; Wed, 23 Mar 2011 23:35:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id 9DDC31337B43 for ; Wed, 23 Mar 2011 20:35:57 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1Q2Xan-0002ij-K2 for pgsql-jdbc@postgresql.org; Wed, 23 Mar 2011 16:35:57 -0700 Date: Wed, 23 Mar 2011 16:35:57 -0700 (PDT) From: sdavidr To: pgsql-jdbc@postgresql.org Message-ID: <1300923357612-4259788.post@n5.nabble.com> Subject: Problems with Hibernate Discriminators and 9.0-801.jdbc4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.767 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201103/41 X-Sequence-Number: 21596 Hi, I have a problem with Hibernate's "single tables" and the last postgres jdbc driver. It seems that now it includes a returning * when there is an Insert, instead of a returning [identifier] that seems more cleaner and doesn't return all the fields. There is a reason for that? and there expectatives to change that? Because of the "returning *", crash when there is an Insert in a table with a String type discriminator, returning this : Caused by: org.postgresql.util.PSQLException: Bad value for type long : NACIONAL at org.postgresql.jdbc2.AbstractJdbc2ResultSet.toLong(AbstractJdbc2ResultSet.java:2796) at org.postgresql.jdbc2.AbstractJdbc2ResultSet.getLong(AbstractJdbc2ResultSet.java:2019) at org.hibernate.id.IdentifierGeneratorHelper.get(IdentifierGeneratorHelper.java:114) at org.hibernate.id.IdentifierGeneratorHelper.getGeneratedIdentity(IdentifierGeneratorHelper.java:86) at org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:98) at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:57) Thanks for any feedback! -- View this message in context: http://postgresql.1045698.n5.nabble.com/Problems-with-Hibernate-Discriminators-and-9-0-801-jdbc4-tp4259788p4259788.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.