tuple « Criteria « JPA Q&A





1. Hibernate Criteria picking tuple instead of object    stackoverflow.com

I am using Hibernate 3.5 The entity class is

package ca.cbc.medialib.entity;


@Entity
public class Category implements Serializable {

/**
 *
 */
private static final long serialVersionUID = 7909213900961217486L;
@XmlAttribute
private long id;
@XmlElement
private String title;
@XmlElement
private String fullTitle;
@XmlElement
private String ...

2. Hibernate Criteria returns tuple instead of object.    forum.hibernate.org

Author 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.org

int 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