-->
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: how to set compositeids in hibernate
PostPosted: Wed Jan 24, 2007 2:40 am 
Newbie

Joined: Wed Jan 24, 2007 2:24 am
Posts: 6
hi
I am using hibernate compositeids.but i am not able to set id utomatically.its asking me to set manually before using it.
its not possible for to set id every time .
please give give me reply to this
thank&regard


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 24, 2007 8:07 am 
Beginner
Beginner

Joined: Tue Nov 22, 2005 5:33 am
Posts: 31
If your using composite id, why would you want a generated id?
If you want hibernate or the database to create the id for you, why not use a long as id instead?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 24, 2007 10:41 am 
Beginner
Beginner

Joined: Thu Sep 22, 2005 10:48 am
Posts: 30
Location: Rio de Janeiro, Brazil
If you use composite id, hibernate is never create id automatic. You it will have create it.

_________________
Please don't forget to rateME!


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.