19 package org.turro.jpa.query;
21 import javax.persistence.criteria.Path;
22 import javax.persistence.criteria.Subquery;
30 protected JpaSubquery(Class<E> javaClass, Subquery subquery) {
43 Path selection =
null;
44 for(
int i = 0; i < columns.length; i++) {
46 selection =
root().get(columns[i]);
47 }
else if(selection !=
null) {
48 selection = selection.get(columns[i]);
51 ((Subquery<E>)
query).select(selection);
JpaSubquery(Class< E > javaClass, Subquery subquery)
JpaSubquery< E > select(String... columns)
JpaSubquery< E > select()