public interface JpaQueryFactory
| Modifier and Type | Method and Description |
|---|---|
ComputedAttributeRegistry |
getComputedAttributes() |
void |
initalize(JpaQueryFactoryContext context)
Called by the JPA module ones initalized.
|
<T> JpaQuery<T> |
query(Class<?> parentEntityClass,
String childrenAttrName,
List<?> parentIds)
Builds a new query for the given attribute.
|
<T> JpaQuery<T> |
query(Class<T> entityClass)
Builds a new query for the given entity class.
|
void initalize(JpaQueryFactoryContext context)
context - to access entityManager, meta-data, etc.<T> JpaQuery<T> query(Class<T> entityClass)
T - entityentityClass - to query<T> JpaQuery<T> query(Class<?> parentEntityClass, String childrenAttrName, List<?> parentIds)
T - parent entityparentEntityClass - to fetch children fromchildrenAttrName - on parent entityparentIds - to retrieve the children fromComputedAttributeRegistry getComputedAttributes()
Copyright © 2017. All Rights Reserved.