-->
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: Using TableGenerator
PostPosted: Sun Apr 07, 2013 11:13 am 
Newbie

Joined: Sun Apr 07, 2013 11:02 am
Posts: 1
All - I would like to create a TableGenerator to access and use generated IDs. However, I do NOT want the TableGenerator to set the IDs on any entity instances - I want to do that myself (with 'assigned'). The reason for this is that I need the IDs for the TableGenerator to be kept in a global database, and then use the IDs to identify entities stored in other databases.

Any ideas how I would do this? How can I just create a TableGenerator and get its next value?

Thanks,
R


Top
 Profile  
 
 Post subject: Re: Using TableGenerator
PostPosted: Sun Apr 07, 2013 11:26 pm 
Newbie

Joined: Sun Apr 07, 2013 12:05 am
Posts: 3
Hi,
you have to go refer the following 2 urls.
http://viralpatel.net/blogs/hibernate-one-to-one-mapping-tutorial-using-annotation/
http://stackoverflow.com/questions/10810506/beginners-error-in-defining-jpa-one-to-one-mapping

I hope that you will get idea too.

-CR


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.