-->
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: net.sf.hibernate.id.IdentifierGenerationException
PostPosted: Thu Jul 15, 2004 5:57 am 
Newbie

Joined: Wed Mar 17, 2004 10:14 am
Posts: 14
Location: France
I use struts to get a actionFormBean from an Html Formular, and when i try to save this bean using sess.save(actionFormBean); I get an exception
net.sf.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save()
I store all of fields(whith identifers) in this html fomular, so i thinks that they are assigned manually .
Thinks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 15, 2004 8:55 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Double check, your actionFormBean.getId() probably returns null or 0 and thus is not set by struts.

_________________
Emmanuel


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.