-->
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.  [ 6 posts ] 
Author Message
 Post subject: A general question about a exception
PostPosted: Wed Apr 11, 2007 4:28 pm 
Beginner
Beginner

Joined: Thu Jan 04, 2007 5:44 am
Posts: 26
Location: Innsbruck - Sivas(TR) - Bregenz
hi,

i have only a general question about this exception:

"object references an unsaved transient instance - save the transient instance before flushing: com.at.Person"

means this exception that the object "person " is the unsaved instance or that exists a unsaved object in "person"

thx


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 2:25 am 
Newbie

Joined: Mon Mar 26, 2007 3:33 am
Posts: 18
I think ,

you are trying to save child data without saving the parent.
your child record is not updated with parent id.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 3:20 am 
Beginner
Beginner

Joined: Thu Jan 04, 2007 5:44 am
Posts: 26
Location: Innsbruck - Sivas(TR) - Bregenz
thx.. but is what is the object "Person", the child or the parent?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 3:22 am 
Newbie

Joined: Mon Mar 26, 2007 3:33 am
Posts: 18
ideally it should be child.

Dont forget to rate, if it will help you out


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 5:43 am 
Beginner
Beginner

Joined: Thu Jan 04, 2007 5:44 am
Posts: 26
Location: Innsbruck - Sivas(TR) - Bregenz
what means ideally .. are you sure that is the child.. i think it is the parent.. i need a conrete answer please.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 13, 2007 1:26 am 
Newbie

Joined: Mon Mar 26, 2007 3:33 am
Posts: 18
if you give me your POJO design then, i will be able to answer you.
I faced the same issue when some how parent id was not getting set to
child record. And i was trying to save that.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.