• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
If you try to please everybody, your progress is limited by the noisiest fool. And this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!