wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes Trouble setting criteria -- org.hibernate.TransientObjectException: object references an unsaved tra Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Trouble setting criteria -- org.hibernate.TransientObjectException: object references an unsaved tra" Watch "Trouble setting criteria -- org.hibernate.TransientObjectException: object references an unsaved tra" New topic
Author

Trouble setting criteria -- org.hibernate.TransientObjectException: object references an unsaved tra

Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436
Hi,

I'm using Hibernate 3.4.0.GA on a Resin 3.0.19 app server (Java 1.5). I'm trying to get a sum of a table of payments in which a payment row has a foreign key to an applicant.



But something is going wrong when I try and set an applicant in the criteria object ...



Upon trying to execute the "uniqueResult" call, I get the following exception. Any ideas for troubleshooting/resolving this? - Dave


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trouble setting criteria -- org.hibernate.TransientObjectException: object references an unsaved tra
 
Similar Threads
TransientObjectException while fetching data.
please solve this prob
Hibernate: Save to Database throwing exception
Issues with @PrimaryKeyJoinColumn
Hibernate: java.lang.ClassCastException: java.util.GregorianCalendar