-->
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: Is there a way to use uuid pkey with PostgreSQL?
PostPosted: Tue Aug 19, 2008 10:20 am 
Newbie

Joined: Tue Aug 19, 2008 10:01 am
Posts: 1
Hibernate version: 3.3.0.GA
Name and version of the database: PostgreSQL 8.3
JDBC driver version: 8.3-603 JDBC 3
Hello,

Our database tables uses primary keys of uuid type. We are trying to employ hibernate, but attempt to insert record, containing value of type java.util.UUID, results in PSQLException with message "column 'entity_id' is of type uuid but expression is of type bytea".

Id field getter is annotated as following:

@Basic(optional = false)
@Column(name = "entity_id")

I've seen similar question on this forum but it stays unanswered. So is there actually a way to use uuid pkey from Hibernate with PostgreSQL?


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.