-->
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.  [ 3 posts ] 
Author Message
 Post subject: Hibernate <generator class="assigned">
PostPosted: Tue Oct 09, 2007 4:25 am 
Newbie

Joined: Mon Oct 08, 2007 8:06 am
Posts: 2
Hi,

Can any one help me to with ...
How to create a primary key in hibernate , without allowing hibernate to create by itself using <generator class="increment">.
I wanted to create a primary key manually(without auto increments),might be using <generator class="assigned"> and mapping those with another tables as foreign key.
a sample code will be helpful..

And is there any problems in retrieving baack datas with hibernate if i create the primary key without allowing hibernate to create a primary key....


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 09, 2007 10:41 am 
Regular
Regular

Joined: Mon Jan 22, 2007 10:32 am
Posts: 101
No examples as of now but I hope this link can provide some pointers

http://www.hibernate.org/hib_docs/v3/re ... aration-id


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 10, 2007 12:07 am 
Newbie

Joined: Mon Oct 08, 2007 8:06 am
Posts: 2
thanks for the help i will go through the link and try it....


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.