List of usage examples for javax.persistence.criteria Fetch getFetches
java.util.Set<Fetch<X, ?>> getFetches();
From source file:org.jdal.dao.jpa.JpaUtils.java
/** * Copy Fetches//w w w. j a v a 2 s . c om * @param from source Fetch * @param to dest Fetch */ public static void copyFetches(Fetch<?, ?> from, Fetch<?, ?> to) { for (Fetch<?, ?> f : from.getFetches()) { Fetch<?, ?> toFetch = to.fetch(f.getAttribute().getName()); // recursively copy fetches copyFetches(f, toFetch); } }
From source file:com.zero.dao.impl.BaseDaoImpl.java
private void copyFetches(Fetch<?, ?> from, Fetch<?, ?> to) { for (Fetch<?, ?> fetch : from.getFetches()) { Fetch<?, ?> toFetch = to.fetch(fetch.getAttribute().getName()); copyFetches(fetch, toFetch);/* w w w .jav a2s . com*/ } }