-->
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.  [ 1 post ] 
Author Message
 Post subject: Force update of transient object using custom sql?
PostPosted: Fri Mar 04, 2005 5:22 am 
Newbie

Joined: Fri Feb 25, 2005 10:51 am
Posts: 8
Hi,
I have a transient object that I know exists in the database. The object uses a synthetic id generated by Hibernate (null since transient) but I have specified a custom update-sql that uses a composite key to update the object. Is there a way to force update this object. When I try session.update(object) i get an error saying that "The given object has a null identifier"

I would like to update a graph of objects this way using cascade. Is it possible? If not what is the preffered way of updating graphs of transient objects?

/william


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.