-->
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: transientobjectexception with VERSIONs
PostPosted: Thu Jul 26, 2007 1:50 pm 
Newbie

Joined: Thu Jul 19, 2007 11:21 am
Posts: 12
Hi there,

I have this problem with a particular many-to-one association where I execute an hql find and send it a not persisted object as parameter . the interesting thing is this query always worked BEFORE ADDING VERSIONs (to both objects in association).

the hql query looks like:
Code:
getHibernateTemplate().find("from A where type = ? ", aType);


where aType is an instance of the associated model, passed via parameters from the presentation to the service/dao layer

the execution here throws a TransientObjectException.

can somebody explain me why this happens?

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 27, 2007 8:26 am 
Newbie

Joined: Thu Jul 19, 2007 11:21 am
Posts: 12
By removing the <version> on the associated model the previous query works again.

I have to build the logic around this constraint now, but can anyone shade some light into this? I couldn't find anything that can explain this in my hibernate books..:(


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.