-->
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: priamry key value set by PRE_INSERT trigger in oracle DB
PostPosted: Fri Jul 14, 2006 10:28 am 
Newbie

Joined: Thu Jun 29, 2006 3:51 am
Posts: 7
Hi,

What property of <ID> should I set when value is populated by a PRE_INSERT trigger in database. In normal entity when I dont give any value for ID ( because database is goingto populate the value ) I get following error :

org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save():



Please suggest,
Thanks in advance,
Prasoon


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 21, 2006 9:44 am 
Newbie

Joined: Tue Jul 11, 2006 9:32 am
Posts: 1
hi,
You should use the 'assigned' generator.

--Anand--


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.