Re: JDBC Driver can't read UUID from database - Mailing list pgsql-bugs

From Dean Schulze
Subject Re: JDBC Driver can't read UUID from database
Date
Msg-id 285378F79EC333408F3AAE73259CCD40626D6C@mbx024-w1-ca-5.exch024.domain.local
Whole thread Raw
In response to Re: JDBC Driver can't read UUID from database  (Kris Jurka <books@ejurka.com>)
Responses Re: JDBC Driver can't read UUID from database
List pgsql-bugs
Thanks.

Out of curiosity why didn't the driver map the Postgresql UUID to a Java
UUID?


On 6/6/12 2:12 AM, "Kris Jurka" <books@ejurka.com> wrote:

>
>
>On Tue, 5 Jun 2012, Dean Schulze wrote:
>
>>=20
>> I'm using Hibernate (3.6 and 4.0) with Postgresql 9.1.  Our tables have
>> UUIDs in them and your driver is trying to convert UUIDs to longs:
>>=20
>
>This is a hibernate mapping problem, not a JDBC Driver problem.  If you
>have a plain ResultSet and call getString() on a UUID field, it will
>certainly work.  Mapping the UUID to BLOB or CLOB is incorrect.  I'm not
>sure why your attempt to map it to a String didn't work, but you are
>not convincing Hibernate to use a plain getString call.
>
>Kris Jurka

pgsql-bugs by date:

Previous
From: Dave Page
Date:
Subject: Re: 9.2 beta1 libxml2 can't be loaded on Windows
Next
From: david@fetter.org
Date:
Subject: BUG #6687: initdb -A ident can almost never be correct