private boolean isJoinFetchedBag(Fetch fetch) { if ( FetchStrategyHelper.isJoinFetched( fetch.getFetchStrategy() ) && CollectionAttributeFetch.class.isInstance( fetch ) ) { final CollectionAttributeFetch collectionAttributeFetch = (CollectionAttributeFetch) fetch; return collectionAttributeFetch.getFetchedType().getClass().isAssignableFrom( BagType.class ); } return false; } }
if ( ! FetchStrategyHelper.isJoinFetched( fetch.getFetchStrategy() ) ) { fetch.getQuerySpaceUid() ); final QueryableCollection queryableCollection = (QueryableCollection) fetch.getCollectionPersister(); final Joinable joinableCollection = (Joinable) fetch.getCollectionPersister(); if ( fetch.getCollectionPersister().isManyToMany() ) { (EntityReference) fetch.getElementGraph(), aliasResolutionContext.resolveEntityReferenceAliases( fetch.getElementGraph().getQuerySpaceUid() ) if ( fetch.getCollectionPersister().isOneToMany() ) { readerCollector.add( new EntityReferenceInitializerImpl( (EntityReference) fetch.getElementGraph(), aliasResolutionContext.resolveEntityReferenceAliases( fetch.getElementGraph().getQuerySpaceUid() ) if ( fetch.getElementGraph() != null ) { processFetches( fetch.getElementGraph(), selectStatementBuilder, readerCollector );
final List<String> bagRoles = new ArrayList<>(); for ( CollectionAttributeFetch bagFetch : fetchStats.getJoinedBagAttributeFetches() ) { bagRoles.add( bagFetch.getCollectionPersister().getRole() );