Class QueryBuilderJoinHelper
java.lang.Object
ch.tocco.nice2.persist.core.api.hibernate.QueryBuilderJoinHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic jakarta.persistence.criteria.Join
<?, ?> findOrCreateJoin
(jakarta.persistence.criteria.From<?, ?> currentEntity, String name, jakarta.persistence.criteria.JoinType joinType) static jakarta.persistence.criteria.Path
<?> join
(FieldResolver fieldResolver, DataModel dataModel, PathNode node, jakarta.persistence.criteria.From<?, ?> queryRoot) Applies a path node to a certain query root.
-
Method Details
-
join
public static jakarta.persistence.criteria.Path<?> join(FieldResolver fieldResolver, DataModel dataModel, PathNode node, jakarta.persistence.criteria.From<?, ?> queryRoot) Applies a path node to a certain query root. Makes all necessary joins and returns the latestJoin
instance. If the last part of the path is a property it is included in the result. -
findOrCreateJoin
public static jakarta.persistence.criteria.Join<?,?> findOrCreateJoin(jakarta.persistence.criteria.From<?, ?> currentEntity, String name, jakarta.persistence.criteria.JoinType joinType)
-