-->
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: Don't require auto-generated Primary key
PostPosted: Mon Oct 20, 2003 5:29 am 
Beginner
Beginner

Joined: Thu Sep 25, 2003 10:30 am
Posts: 23
Location: india
Hi,
I don't require auto generated primary key to save in the database as my records are generated by the layer which is above hibernate and also generates the primary key for the record.
How do I implement this feature through Hibernate in .hbm.xml file

Is it important to have the generator class. Or should I implement something like composite key class.

thanks
regards
prasad chandrasekaran


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 20, 2003 5:49 am 
Senior
Senior

Joined: Tue Sep 23, 2003 8:18 am
Posts: 137
Location: Johannesburg, South Africa
Just use the Assigned generator type instead of Identity.

-G


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.