-->
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: could not instantiate test object
PostPosted: Mon Nov 21, 2005 2:05 am 
Newbie

Joined: Sun Jun 19, 2005 5:52 am
Posts: 3
Hi,

My class constructor contains a HQL query for initialize some properties. When i upgrade from 0.8.4 to 1.0 i receive "could not instantiate test object"+ClassName error message on BuildSessionFactory. This error was not appear if i comment class constructor also in 0.8.4 with class constructor. How can i resolve this problem?

Regards


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 21, 2005 5:02 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
This error comes from the unsaved-value guessing functionality. Manually specify unsaved-value for the id property and any version property in the class and the error should go away.


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.