Re: Problems with Hibernate Discriminators and 9.0-801.jdbc4 - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: Problems with Hibernate Discriminators and 9.0-801.jdbc4
Date
Msg-id AANLkTikXMw_XM3Tw=OT6yWUjz6ZESk3=-KqBb3uTSACx@mail.gmail.com
Whole thread Raw
In response to Re: Problems with Hibernate Discriminators and 9.0-801.jdbc4  (Oliver Jowett <oliver@opencloud.com>)
List pgsql-jdbc
On Mon, Mar 28, 2011 at 5:05 AM, Oliver Jowett <oliver@opencloud.com> wrote:
> On 28 March 2011 21:02, sdavidr <david.ricoma@gmail.com> wrote:
>> Yes, the problem is not only with version 9. The problem started with the
>> "returning *", that from my perspective is a very error prone solution and
>> of course it shows a poorly designed driver.
>>
>> The question is: is it very difficult to change that to a more correct
>> returning [identifier] ?
>
> We need an example of what is going wrong.
> What are the calls that Hibernate is making to the driver, and what is
> the driver returning that is incorrect?
>
> Oliver
>

If I understand this correctly he is using a column other than the
first one as the id and hibernate is assuming that the first column is
the key. Seems to me the most robust way to fix this is in hibernate.
Hibernate should be getting the key out of the column by name instead
of by number.


Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: Problems with Hibernate Discriminators and 9.0-801.jdbc4
Next
From: Oliver Jowett
Date:
Subject: Re: Problems with Hibernate Discriminators and 9.0-801.jdbc4