-->
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: How to use multiple generators
PostPosted: Wed Nov 29, 2006 11:10 am 
Newbie

Joined: Wed Nov 29, 2006 11:04 am
Posts: 2
I have a scenario in which i need to use 2 ( or possible more ) genreators for some column values ( 1 for PK and other some extra keys), how do i define these mappings in the hibernate mappings ?.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 29, 2006 11:31 am 
Senior
Senior

Joined: Mon Oct 23, 2006 5:12 am
Posts: 141
Location: Galicia, Spain
The only chance you have to use generator outside the <id> declaration (primary key) is described here:

http://www.hibernate.org/hib_docs/v3/re ... ions-idbag

If it meets your need, great. If not, those are the only places you can use a generator (you can check this by looking at the hibernate mapping dtd)

_________________
andresgr (--don't forget to rate)


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.