use of org.hibernate.loader.plan.build.spi.ExpandingCompositeQuerySpace in project hibernate-orm by hibernate.
the class QuerySpaceHelper method makeCompositeQuerySpace.
public ExpandingCompositeQuerySpace makeCompositeQuerySpace(ExpandingQuerySpace lhsQuerySpace, CompositePropertyMapping compositePropertyMapping, String attributeName, CompositeType attributeType, String querySpaceUid, boolean required, boolean shouldIncludeJoin) {
final ExpandingCompositeQuerySpace rhs = lhsQuerySpace.getExpandingQuerySpaces().makeCompositeQuerySpace(querySpaceUid, compositePropertyMapping, required);
if (shouldIncludeJoin) {
final JoinDefinedByMetadata join = JoinHelper.INSTANCE.createCompositeJoin(lhsQuerySpace, attributeName, rhs, required, attributeType);
lhsQuerySpace.addJoin(join);
}
return rhs;
}
use of org.hibernate.loader.plan.build.spi.ExpandingCompositeQuerySpace in project hibernate-orm by hibernate.
the class QuerySpacesImpl method makeCompositeQuerySpace.
@Override
public ExpandingCompositeQuerySpace makeCompositeQuerySpace(String uid, CompositePropertyMapping compositePropertyMapping, boolean canJoinsBeRequired) {
checkQuerySpaceDoesNotExist(uid);
final ExpandingCompositeQuerySpace space = new CompositeQuerySpaceImpl(compositePropertyMapping, uid, this, canJoinsBeRequired);
registerQuerySpace(space);
return space;
}
Aggregations