About tuple

manual

SELECT clause (JPQL / Criteria API)

Explains how to use the SELECT clause and projections in a JPA/JPQL query.... interface defines a compound selection item (tuple, array, or result of constructor). See JavaDoc Reference Page... ... item. See JavaDoc Reference Page... , tuple tuple(selections) CriteriaBuilder's method Create a tuple-valued ...

 
api-jpa

Criteria Query Selection and Results

Reference (JavaDoc) of JPA query criteria result interfaces, including Selection, CompoundSelection, Order and Tuple.... clause) using tuples: javax.persistence.Tuple javax.persistence.TupleElement The Tuple javax.persistence.Tuple JPA interface Interface for ...

 
api-jpa

javax.persistence.Tuple

Interface for extracting the elements of a query result tuple.(Interface of JPA)

 
api-jpa

tuple(selections)

Create a tuple-valued selection item.(Method of javax.persistence.criteria.CriteriaBuilder)

 
issue

Weird issue with variable naming

hi, ... . Persistence ; import javax. persistence . Tuple ; import javax. persistence . criteria . ... ( ) ; final CriteriaQuery<Tuple> cq = cb. createQuery ( Tuple . class ) ...

 
issue

@FetchGroup in JPA similar to JDO

I was checking what's new in different JPA implementation on the market and found quite interesting two features. First of those features is described in this ticket. It's similar to FetchGroup from JDO. It works like this. First you specify attributes to fetch from database: ... be equivalent to query using tuples: TypedQuery<Tuple> query = em. createQuery ( "select e.firstName, e.lastName FROM Entity e" , Tuple . class ) ; But with fetch group you don't ...

 
api-jpa

createTupleQuery()

Create a CriteriaQuery object that returns a tuple of objects as its result.(Method of javax.persistence.criteria.CriteriaBuilder)

 
api-jpa

get(i, type)

Get the value of the element at the specified position in the result tuple.(Method of javax.persistence.Tuple)

 
api-jpa

get(alias, type)

Get the value of the tuple element to which the specified alias has been assigned.(Method of javax.persistence.Tuple)

 
api-jpa

get(tupleElement)

Get the value of the specified tuple element.(Method of javax.persistence.Tuple)