Search in sources :

Example 1 with CompleteResultBuilderEntityStandard

use of org.hibernate.query.results.complete.CompleteResultBuilderEntityStandard in project hibernate-orm by hibernate.

the class ResultMementoEntityStandard method resolve.

@Override
public ResultBuilderEntityValued resolve(Consumer<String> querySpaceConsumer, ResultSetMappingResolutionContext context) {
    final BasicValuedFetchBuilder discriminatorResultBuilder = discriminatorMemento != null ? (BasicValuedFetchBuilder) discriminatorMemento.resolve(this, querySpaceConsumer, context) : null;
    final HashMap<String, FetchBuilder> fetchBuilderMap = new HashMap<>();
    fetchMementoMap.forEach((attrName, fetchMemento) -> fetchBuilderMap.put(attrName, fetchMemento.resolve(this, querySpaceConsumer, context)));
    return new CompleteResultBuilderEntityStandard(tableAlias, navigablePath, entityDescriptor, lockMode, discriminatorResultBuilder, fetchBuilderMap);
}
Also used : BasicValuedFetchBuilder(org.hibernate.query.results.BasicValuedFetchBuilder) FetchBuilder(org.hibernate.query.results.FetchBuilder) BasicValuedFetchBuilder(org.hibernate.query.results.BasicValuedFetchBuilder) HashMap(java.util.HashMap) CompleteResultBuilderEntityStandard(org.hibernate.query.results.complete.CompleteResultBuilderEntityStandard)

Aggregations

HashMap (java.util.HashMap)1 BasicValuedFetchBuilder (org.hibernate.query.results.BasicValuedFetchBuilder)1 FetchBuilder (org.hibernate.query.results.FetchBuilder)1 CompleteResultBuilderEntityStandard (org.hibernate.query.results.complete.CompleteResultBuilderEntityStandard)1