1. Hibernate Criteria picking tuple instead of object stackoverflow.comI am using Hibernate 3.5 The entity class is
|
2. Hibernate Criteria returns tuple instead of object. forum.hibernate.orgAuthor Message arashbi Post subject: Hibernate Criteria returns tuple instead of object. Posted: Thu Oct 27, 2011 2:36 pm Newbie Joined: Mon Aug 15, 2005 3:43 am Posts: 15 I am using Hibernate 3.5 The entity class is Code: package ca.cbc.medialib.entity; import org.hibernate.annotations.AccessType; import javax.persistence.*; import javax.xml.bind.annotation.*; import java.io.Serializable; import java.util.*; /** * @author Arash Bizhanzadeh |
3. Tuples in Criteria result. Is it bug or feature? forum.hibernate.orgint count = 0; criteria.setProjection(Projections.rowCount()); count =((Integer) criteria.uniqueResult()).intValue(); criteria.setProjection(null); |
4. Criteria and tuples forum.hibernate.org |
5. Criteria and tuples forum.hibernate.org |