-->
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: Id Generator in a different database: MultipleHiLoPerTable?
PostPosted: Tue Feb 06, 2007 1:38 am 
Newbie

Joined: Tue Feb 06, 2007 1:28 am
Posts: 1
I need to use an id generation scheme that references an id generator table that lives in a different database than the persistent objects. I'd like to use a HiLo implementation, like MultipleHiLoPerTableGenerator.

Would it be as simple as calling the generate() method, while passing in the Session from the database with the id generation tables, and the object for which I'm generating the id? I'm worried that the impl expects the persistent object to have mapping definitions in the same Session as the id gen table (which it would not).

If this scheme would not work, can anyone suggest a different way of accomplishing this feat? Anyone know of a good 3rd-party HiLo implementation?

Thanks!


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.