TransientObjectException « Criteria « JPA Q&A





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

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. public class FinancialAidPayment implements Serializable { ... private Applicant applicant; ... @ManyToOne @JoinColumn(name="applicant_id", referencedColumnName="id") public Applicant getApplicant() { return applicant; } public void setApplicant(Applicant applicant) ...