pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: pharoz <nabble@pharoz.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: Problems with Hibernate Discriminators and 9.0-801.jdbc4
Date: Wed, 7 Dec 2011 07:10:25 -0800 (PST)
Message-ID: <1323270625199-5055944.post@n5.nabble.com> (raw)
In-Reply-To: <AANLkTinU89oH94pxAUSSMrURkAXYWp+j_Y-1D51yBmBX@mail.gmail.com>
References: <1300923357612-4259788.post@n5.nabble.com>
	<AANLkTi=muHS+5uUaOoc-6EtNoMBWe39kotKxNTSXKqt-@mail.gmail.com>
	<1301299364557-4267176.post@n5.nabble.com>
	<AANLkTindSSqZiZwtPYKFfmBn+VWqCOrq8F+YC6JLb-eF@mail.gmail.com>
	<AANLkTimHhNpk1Nx9kEza7DyffzTLH=P6ja4XM9j0-yCS@mail.gmail.com>
	<1301317540172-4267556.post@n5.nabble.com>
	<AANLkTik_5mWeWs7RyVwa7-3BgDdgH1QR3XSYQntY9-7e@mail.gmail.com>
	<AANLkTinU89oH94pxAUSSMrURkAXYWp+j_Y-1D51yBmBX@mail.gmail.com>

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");
	}
}



view thread (19+ messages)

Message-ID: <1323270625199-5055944.post@n5.nabble.com>
Permalink:  ../1323270625199-5055944.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1323270625199-5055944.post@n5.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: nabble@pharoz.net
  Subject: Re: Problems with Hibernate Discriminators and 9.0-801.jdbc4
  In-Reply-To: <1323270625199-5055944.post@n5.nabble.com>
  References: <1300923357612-4259788.post@n5.nabble.com> <AANLkTi=muHS+5uUaOoc-6EtNoMBWe39kotKxNTSXKqt-@mail.gmail.com> <1301299364557-4267176.post@n5.nabble.com> <AANLkTindSSqZiZwtPYKFfmBn+VWqCOrq8F+YC6JLb-eF@mail.gmail.com> <AANLkTimHhNpk1Nx9kEza7DyffzTLH=P6ja4XM9j0-yCS@mail.gmail.com> <1301317540172-4267556.post@n5.nabble.com> <AANLkTik_5mWeWs7RyVwa7-3BgDdgH1QR3XSYQntY9-7e@mail.gmail.com> <AANLkTinU89oH94pxAUSSMrURkAXYWp+j_Y-1D51yBmBX@mail.gmail.com> <1323270625199-5055944.post@n5.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox