Re: JDBC Driver can't read UUID from database

Поиск
Список
Период
Сортировка
От Dean Schulze
Тема Re: JDBC Driver can't read UUID from database
Дата
Msg-id 285378F79EC333408F3AAE73259CCD40626D6C@mbx024-w1-ca-5.exch024.domain.local
обсуждение исходный текст
Ответ на Re: JDBC Driver can't read UUID from database  (Kris Jurka <books@ejurka.com>)
Ответы Re: JDBC Driver can't read UUID from database  (Kris Jurka <books@ejurka.com>)
Список 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 по дате отправления:

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: 9.2 beta1 libxml2 can't be loaded on Windows
Следующее
От: david@fetter.org
Дата:
Сообщение: BUG #6687: initdb -A ident can almost never be correct