List of usage examples for javax.persistence.criteria FetchParent getFetches
java.util.Set<Fetch<X, ?>> getFetches();
From source file:com.ocs.dynamo.dao.query.JpaQueryBuilder.java
private static boolean isCollectionFetch(FetchParent<?, ?> parent) { boolean result = false; for (Fetch<?, ?> fetch : parent.getFetches()) { Attribute<?, ?> attribute = fetch.getAttribute(); boolean nested = isCollectionFetch(fetch); result = result || attribute.isCollection() || nested; }// ww w. java2 s. c om return result; }