-->
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: Using Hibernate with HSQL, use of GUID
PostPosted: Tue Sep 12, 2006 3:25 am 
Newbie

Joined: Tue Sep 12, 2006 3:19 am
Posts: 6
Hello,

I'm setting up a project with HSQL in combination with Hibernate 3.
I would like to use a GUID as primary key for a couple of tables.

HSQL by default doesn't support a GUID as type.
Hibernate can do that through the <generator class="guid"/> tag.

Will this work like that ?
Who will generate the GUID ?
Is that Hibernate layer or is such a generation forwarded to the database ?
Any possible side effects or things to consider ?

What column type do I use in HSQL ? Long ?

Many thanks,

Geert


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.