use of com.blazebit.persistence.ObjectBuilder in project blaze-persistence by Blazebit.
the class SubviewCorrelator method finish.
@Override
@SuppressWarnings({ "rawtypes", "unchecked" })
public ObjectBuilder<?> finish(FullQueryBuilder<?, ?> criteriaBuilder, EntityViewConfiguration entityViewConfiguration, int offset, int tupleSuffix, String correlationRoot, EmbeddingViewJpqlMacro embeddingViewJpqlMacro, boolean nullFlatViewIfEmpty) {
EntityViewConfiguration subviewConfiguration = entityViewConfiguration.forSubview(criteriaBuilder, attributePath, embeddingViewJpqlMacro);
ObjectBuilder builder = evm.createObjectBuilder(managedViewType, mappingConstructor, correlationRoot, attributePath, criteriaBuilder, subviewConfiguration, offset, tupleSuffix, nullFlatViewIfEmpty);
criteriaBuilder.selectNew(builder);
return builder;
}
Aggregations