Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

hibernate object reference error  RSS feed

 
Linwood Hayes
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A common hibernate exception: object references an unsaved transient instance - save the transient instance before flushing

--

When an object A has reference to another object B, if B is transient and unsaved, when A is saved it throws this hibernate exception.  Question is : does instance  A's other attributes get correctly saved except the B part ? or does nothing saved for this new A instance ?
 
Vadim titsi
Greenhorn
Posts: 14
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to see the code
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!