property « Test « JPA Q&A





1. org.hibernate.QueryException: could not resolve property: ObjectId of: test.Objtablee    coderanch.com

I have one table Objtablee Annotations /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package test; import java.io.Serializable; import java.util.Date; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence.OneToOne; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; /** * * @author baktha */ @Entity @Table(name ...

2. Test the deletion of an element from a collection property..    forum.hibernate.org

Pro Joined: Mon Apr 16, 2007 8:10 am Posts: 213 I have a unit test to check for the correct deletion of an element in a collection property. The deletion of the object from the collection should result in the deletion of the record from the table. The test source code: Code: public LinkCategoryDaoTest() { ...