Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // mmma9 JoinFetcher (no duplicates generated: if not -> setDistinct(true))
- public static <X> void JoinFetcher(FetchParent<X, ReplenishmentEntity> fetchParent) {
- // Important: Here use ONLY JoinType.LEFT
- // (even if the relation is required/1-1, because, recursively, this method can be called from a
- // parent entity on an optional relation)
- final javax.persistence.criteria.Fetch<ReplenishmentEntity, WarehouseEntity> warehouseFetch =
- fetchParent.fetch(ReplenishmentEntity_.warehouse, JoinType.LEFT);
- WarehouseEntity.JoinFetcherFromReplenishment(warehouseFetch); // (no duplicates generated)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement