File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate TransientObjectException

 
Pranav Sharma
Ranch Hand
Posts: 258
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
My current scenario first.

Following are the relationships for domain objects A, B and C

A 1---------------many B (cascade = "all" inverse="true")
A 1---------------many C (cascade = "all" inverse="true")
B 1---------------many C (cascade = "all" inverse="true")

I do the following in this order.


I get the following.
org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: foo.bar.packages.C


What am I doing wrong here ?

I'm hoping to do this with one save call, because that defines our transaction boundary call.

Please help. Thanks.
 
Pranav Sharma
Ranch Hand
Posts: 258
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone ?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic