-->
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: TransientObjectException
PostPosted: Fri May 28, 2010 6:55 am 
Newbie

Joined: Fri May 28, 2010 6:15 am
Posts: 1
Hi All,
I am getting exception
object references an unsaved transient instance - save the transient instance before flushing:

I have an object A with many-to-one mapping with object B
CASE I
insert="false" update="false" lazy="false" not-found="ignore"

Now i am trying to save the object A with a reference of B which does not exist.
Getting the above mentioned exception.
As per the Mapping reference i had an impression that with insert="false" update="false" not going to and update/insert DDL for object B.

CASE II
insert="false" update="false" lazy="false" not-found="exception"
Change to above mapping not getting any such exception on Save object A

Can anybody please explain?
Thanks, Saikat


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.