Re: BUG #4586: Supporting of Binary instead Bytea for Primary Keys
От | Miroslav Nachev |
---|---|
Тема | Re: BUG #4586: Supporting of Binary instead Bytea for Primary Keys |
Дата | |
Msg-id | 49497E46.70102@space-comm.com обсуждение исходный текст |
Ответ на | BUG #4586: Supporting of Binary instead Bytea for Primary Keys ("Miroslav Nachev" <miro@space-comm.com>) |
Список | 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
В списке pgsql-bugs по дате отправления: