From: | Miroslav Nachev <miro(at)space-comm(dot)com> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Cc: | Kris Jurka <books(at)ejurka(dot)com> |
Subject: | Re: BUG #4586: Supporting of Binary instead Bytea for Primary Keys |
Date: | 2008-12-17 22:33:42 |
Message-ID: | 49497E46.70102@space-comm.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
I try to use it but I have the following exception:
java.lang.IllegalArgumentException: Unknown entity: java.util.UUID
at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:223)
at psqluuidtest.Main.persist(Main.java:33)
at psqluuidtest.Main.main(Main.java:25)
The NetBeans project is attached.
The used driver is postgresql-8.4dev-700.jdbc4.
Miro.
Miroslav Nachev wrote:
Hi,
This is very good. Can you give me some idea how to use that feature together with Hibernate JPA? Is there some special annotation or ?
Regards,
Miro.
Kris Jurka wrote:
On Wed, 17 Dec 2008, Miroslav Nachev wrote:
Thank you very much. How can I map PostgreSQL UUID to JPA Hibernate with
annotations? Serializable or BigInteger or byte[] or java.util.UUID?
The server uuid type is already mapped to java.util.UUID in recent JDBC driver versions:
http://archives.postgresql.org/pgsql-jdbc/2008-09/msg00102.php
Kris Jurka
Attachment | Content-Type | Size |
---|---|---|
unknown_filename | text/html | 1.8 KB |
PsqlUuidTest.zip | application/octet-stream | 14.0 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Kris Jurka | 2008-12-17 22:52:04 | Re: BUG #4586: Supporting of Binary instead Bytea for Primary Keys |
Previous Message | Miroslav Nachev | 2008-12-17 22:30:25 | Re: BUG #4586: Supporting of Binary instead Bytea for Primary Keys |