-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: JPA Hibernate with UUID and PostgreSQL
PostPosted: Thu Feb 05, 2009 11:11 am 
Newbie

Joined: Tue Feb 24, 2004 11:35 am
Posts: 9
Location: Sofia, Bulgaria
Hibernate version: JPA, 3.2.5.ga

Name and version of the database you are using:PostgreSQL v8.3.5 with JDBC v8.4devel Build 700

Is there any way to use PostgreSQL UUID type which is binary(16) and java.util.UUID in one annotated Entity Bean? When I try to do that I have the following exception:
ERROR [org.hibernate.util.JDBCExceptionReporter] ERROR: column "id" is of type uuid but expression is of type character varying

_________________
Regards,
Miro


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.