Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 287789ED585 for ; Wed, 7 Dec 2011 11:10:48 -0400 (AST) Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RYJ8o-0006UC-KG for pgsql-jdbc@postgresql.org; Wed, 07 Dec 2011 15:10:47 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RYJ8b-00064i-6e for pgsql-jdbc@postgresql.org; Wed, 07 Dec 2011 07:10:25 -0800 Date: Wed, 7 Dec 2011 07:10:25 -0800 (PST) From: pharoz To: pgsql-jdbc@postgresql.org Message-ID: <1323270625199-5055944.post@n5.nabble.com> In-Reply-To: References: <1300923357612-4259788.post@n5.nabble.com> <1301299364557-4267176.post@n5.nabble.com> <1301317540172-4267556.post@n5.nabble.com> Subject: Re: 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-Pg-Spam-Score: -0.1 (/) X-Archive-Number: 201112/36 X-Sequence-Number: 22490 Hi, Thx all for your diagnostic, I just found a solution. You have to create your own PostgreSQLDialect as public class PostgreSQLDialect extends org.hibernate.dialect.PostgreSQLDialect { public PostgreSQLDialect() { super(); // tells to hibernate to not use result returned by INSERT .... RETURNING * this.getDefaultProperties().setProperty(AvailableSettings.USE_GET_GENERATED_KEYS, "false"); } }