-->
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.  [ 2 posts ] 
Author Message
 Post subject: db independent application-wide unique ids
PostPosted: Tue Jun 07, 2005 3:57 am 
Newbie

Joined: Tue Mar 23, 2004 2:32 pm
Posts: 3
Hello,

I'm playing with Hibernate 3.0.3 + annotations beta2 and mysql 3.x. I cannot figure out how to define an id generation strategy, which would provide application-wide unique ids. I think this would be easy with a DB supporting sequences, but this is not the case.

@Id(generate=GeneratorType.TABLE) works, but stores separate "next hi id value" per each class / table.

I find this application-wide ids generally as a good idea and in addition this is a must for union-subclass inheritance mapping strategy.

Thanks for any help,
Karel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 10, 2005 4:35 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
This is not possible right now, but I need to enable all Hibernate generator strategies through annotations.

_________________
Emmanuel


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

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.