public interface FromStream<X,S extends From<?,X>> extends PathStream<X,S>
SearchStream containing items representable as Froms.QueryStream.Builder| Modifier and Type | Method and Description |
|---|---|
<R> FromStream<X,S> |
addRoot(Ref<R,? super Root<R>> ref,
Class<R> type)
Bind an unbound reference to a new query root that will be added to the query.
|
FromStream<X,S> |
bind(Ref<X,? super S> ref)
Bind an unbound reference to the items in this stream.
|
<X2,S2 extends Selection<X2>> |
bind(Ref<X2,? super S2> ref,
Function<? super S,? extends S2> refFunction)
Bind an unbound reference to the result of applying the given function to the items in this stream.
|
FromStream<X,S> |
distinct()
Suppress duplicates.
|
FromStream<X,S> |
fetch(PluralAttribute<? super X,?,?> attribute)
Add a plural fetch join to this stream.
|
FromStream<X,S> |
fetch(PluralAttribute<? super X,?,?> attribute,
JoinType joinType)
Add a plural fetch join to this stream.
|
FromStream<X,S> |
fetch(SingularAttribute<? super X,?> attribute)
Add a singular fetch inner join to this stream.
|
FromStream<X,S> |
fetch(SingularAttribute<? super X,?> attribute,
JoinType joinType)
Add a singular fetch join to this stream.
|
FromStream<X,S> |
filter(Function<? super S,? extends Expression<Boolean>> predicateBuilder)
Filter results using the boolean expression produced by the given function.
|
FromStream<X,S> |
filter(SingularAttribute<? super X,Boolean> attribute)
Filter results using the specified boolean property.
|
FromValue<X,S> |
findAny()
Find any instance in the stream.
|
FromValue<X,S> |
findFirst()
Find the first instance in the stream.
|
FromValue<X,S> |
findSingle()
Find the only instance in the stream.
|
FromStream<X,S> |
groupBy(Function<? super S,? extends Expression<?>> groupFunction)
Apply grouping based on a single expression.
|
FromStream<X,S> |
groupBy(Ref<?,? extends Expression<?>> ref)
Apply grouping based on an expression reference.
|
FromStream<X,S> |
groupBy(SingularAttribute<? super X,?> attribute)
Apply grouping based on the specified property.
|
FromStream<X,S> |
groupByMulti(Function<? super S,? extends List<Expression<?>>> groupFunction)
Apply grouping based on a list of expressions.
|
FromStream<X,S> |
having(Function<? super S,? extends Expression<Boolean>> havingFunction)
Add a "having" restriction.
|
FromStream<X,S> |
limit(int maxSize)
Return this stream truncated to the specified maximum length.
|
FromStream<X,S> |
orderBy(Function<? super S,? extends Expression<?>> orderExprFunction,
boolean asc)
Order results using the
Expression produced by the given Function. |
FromStream<X,S> |
orderBy(Order... orders)
Order results using the specified
Orders. |
FromStream<X,S> |
orderBy(Ref<?,? extends Expression<?>> ref,
boolean asc)
Order results using the specified expression reference.
|
FromStream<X,S> |
orderBy(SingularAttribute<? super X,?> attribute,
boolean asc)
Order results using the specified property.
|
FromStream<X,S> |
orderBy(SingularAttribute<? super X,?> attribute1,
boolean asc1,
SingularAttribute<? super X,?> attribute2,
boolean asc2)
Order results using the specified properties.
|
FromStream<X,S> |
orderBy(SingularAttribute<? super X,?> attribute1,
boolean asc1,
SingularAttribute<? super X,?> attribute2,
boolean asc2,
SingularAttribute<? super X,?> attribute3,
boolean asc3)
Order results using the specified properties.
|
FromStream<X,S> |
orderByMulti(Function<? super S,? extends List<? extends Order>> orderListFunction)
|
FromStream<X,S> |
peek(Consumer<? super S> peeker)
Peek at the items in this stream.
|
FromStream<X,S> |
skip(int num)
Return this stream with the specified number of initial elements skipped.
|
FromStream<X,S> |
thenOrderBy(Function<? super S,? extends Expression<?>> orderExprFunction,
boolean asc)
Order results using the
Expression produced by the given Function after existing sort. |
FromStream<X,S> |
thenOrderBy(Order... orders)
Order results using the specified
Orders after existing sort. |
FromStream<X,S> |
thenOrderBy(Ref<?,? extends Expression<?>> ref,
boolean asc)
Order results using the specified expression reference after existing sort.
|
FromStream<X,S> |
thenOrderBy(SingularAttribute<? super X,?> attribute,
boolean asc)
Order results using the specified property after existing sort.
|
FromStream<X,S> |
withFetchGraph(String name)
Configure a fetch graph for this query.
|
FromStream<X,S> |
withFlushMode(FlushModeType flushMode)
Set the
FlushModeType associated with this query. |
FromStream<X,S> |
withHint(String name,
Object value)
Associate a hint with this query.
|
FromStream<X,S> |
withHints(Map<String,Object> hints)
Associate hints with this query.
|
FromStream<X,S> |
withLoadGraph(String name)
Configure a load graph for this query.
|
FromStream<X,S> |
withLockMode(LockModeType lockMode)
Set the
LockModeType associated with this query. |
FromStream<X,S> |
withParam(Parameter<Calendar> parameter,
Calendar value,
TemporalType temporalType)
Bind the value of a query parameter of type
Calendar. |
FromStream<X,S> |
withParam(Parameter<Date> parameter,
Date value,
TemporalType temporalType)
Bind the value of a query parameter of type
Date. |
<T> FromStream<X,S> |
withParam(Parameter<T> parameter,
T value)
Bind the value of a query parameter.
|
FromStream<X,S> |
withParams(Iterable<? extends ParamBinding<?>> params)
Associate parameter bindings with this query.
|
castasSubquery, count, countDistinct, existsallMatch, allMatch, anyMatch, anyMatch, flatMap, flatMap, flatMap, flatMapKeys, flatMapValues, getQueryType, getResultList, getResultStream, isEmpty, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, map, map, map, map, mapToDouble, mapToDouble, mapToExpr, mapToFrom, mapToInt, mapToInt, mapToLong, mapToLong, mapToPath, mapToRef, mapToRef, mapToRef, mapToRef, mapToRoot, mapToSelection, noneMatch, noneMatchgetEntityManager, getFirstResult, getFlushMode, getHints, getLockMode, getMaxResults, getParams, newBuilder, toCriteriaQuery, toQueryconfigureFromStream<X,S> distinct()
SearchStreamFromStream<X,S> orderBy(Ref<?,? extends Expression<?>> ref, boolean asc)
SearchStreamReplaces any existing sort ordering.
orderBy in interface ExprStream<X,S extends From<?,X>>orderBy in interface PathStream<X,S extends From<?,X>>orderBy in interface SearchStream<X,S extends From<?,X>>ref - previously bound expression referenceasc - true for ascending, false for descendingFromStream<X,S> orderBy(SingularAttribute<? super X,?> attribute, boolean asc)
SearchStreamReplaces any existing sort ordering.
orderBy in interface ExprStream<X,S extends From<?,X>>orderBy in interface PathStream<X,S extends From<?,X>>orderBy in interface SearchStream<X,S extends From<?,X>>attribute - associated propertyasc - true for ascending, false for descendingFromStream<X,S> orderBy(SingularAttribute<? super X,?> attribute1, boolean asc1, SingularAttribute<? super X,?> attribute2, boolean asc2)
SearchStreamReplaces any existing sort ordering.
orderBy in interface ExprStream<X,S extends From<?,X>>orderBy in interface PathStream<X,S extends From<?,X>>orderBy in interface SearchStream<X,S extends From<?,X>>attribute1 - associated propertyasc1 - true for attribute1 ascending, false for attribute1 descendingattribute2 - associated propertyasc2 - true for attribute2 ascending, false for attribute2 descendingFromStream<X,S> orderBy(SingularAttribute<? super X,?> attribute1, boolean asc1, SingularAttribute<? super X,?> attribute2, boolean asc2, SingularAttribute<? super X,?> attribute3, boolean asc3)
SearchStreamReplaces any existing sort ordering.
orderBy in interface ExprStream<X,S extends From<?,X>>orderBy in interface PathStream<X,S extends From<?,X>>orderBy in interface SearchStream<X,S extends From<?,X>>attribute1 - associated propertyasc1 - true for attribute1 ascending, false for attribute1 descendingattribute2 - associated propertyasc2 - true for attribute2 ascending, false for attribute2 descendingattribute3 - associated propertyasc3 - true for attribute3 ascending, false for attribute3 descendingFromStream<X,S> orderBy(Function<? super S,? extends Expression<?>> orderExprFunction, boolean asc)
SearchStreamExpression produced by the given Function.
Replaces any existing sort ordering.
orderBy in interface ExprStream<X,S extends From<?,X>>orderBy in interface PathStream<X,S extends From<?,X>>orderBy in interface SearchStream<X,S extends From<?,X>>orderExprFunction - Function that produces an Expression to order on given an item expressionasc - true for ascending, false for descendingFromStream<X,S> orderBy(Order... orders)
SearchStreamOrders.
Replaces any existing sort ordering.
orderBy in interface ExprStream<X,S extends From<?,X>>orderBy in interface PathStream<X,S extends From<?,X>>orderBy in interface SearchStream<X,S extends From<?,X>>orders - ordering(s), with higher precedence orderings firstFromStream<X,S> orderByMulti(Function<? super S,? extends List<? extends Order>> orderListFunction)
SearchStreamOrder list produced by the given Function.
Replaces any existing sort ordering.
orderByMulti in interface ExprStream<X,S extends From<?,X>>orderByMulti in interface PathStream<X,S extends From<?,X>>orderByMulti in interface SearchStream<X,S extends From<?,X>>orderListFunction - Function that produces the sort ordering given an item expressionFromStream<X,S> thenOrderBy(SingularAttribute<? super X,?> attribute, boolean asc)
SearchStreamAdds to any existing sort ordering.
thenOrderBy in interface ExprStream<X,S extends From<?,X>>thenOrderBy in interface PathStream<X,S extends From<?,X>>thenOrderBy in interface SearchStream<X,S extends From<?,X>>attribute - associated propertyasc - true for ascending, false for descendingFromStream<X,S> thenOrderBy(Ref<?,? extends Expression<?>> ref, boolean asc)
SearchStreamAdds to any existing sort ordering.
thenOrderBy in interface ExprStream<X,S extends From<?,X>>thenOrderBy in interface PathStream<X,S extends From<?,X>>thenOrderBy in interface SearchStream<X,S extends From<?,X>>ref - previously bound expression referenceasc - true for ascending, false for descendingFromStream<X,S> thenOrderBy(Order... orders)
SearchStreamOrders after existing sort.
Adds to any existing sort ordering.
thenOrderBy in interface ExprStream<X,S extends From<?,X>>thenOrderBy in interface PathStream<X,S extends From<?,X>>thenOrderBy in interface SearchStream<X,S extends From<?,X>>orders - ordering(s), with higher precedence orderings firstFromStream<X,S> thenOrderBy(Function<? super S,? extends Expression<?>> orderExprFunction, boolean asc)
SearchStreamExpression produced by the given Function after existing sort.
Adds to any existing sort ordering.
thenOrderBy in interface ExprStream<X,S extends From<?,X>>thenOrderBy in interface PathStream<X,S extends From<?,X>>thenOrderBy in interface SearchStream<X,S extends From<?,X>>orderExprFunction - Function that produces an Expression to order on given an item expressionasc - true for ascending, false for descendingFromStream<X,S> groupBy(Ref<?,? extends Expression<?>> ref)
SearchStreamAdds to any previously specified groupings.
groupBy in interface ExprStream<X,S extends From<?,X>>groupBy in interface PathStream<X,S extends From<?,X>>groupBy in interface SearchStream<X,S extends From<?,X>>ref - previously bound expression referenceFromStream<X,S> groupBy(SingularAttribute<? super X,?> attribute)
SearchStreamAdds to any previously specified groupings.
FromStream<X,S> groupBy(Function<? super S,? extends Expression<?>> groupFunction)
SearchStreamAdds to any previously specified groupings.
groupBy in interface ExprStream<X,S extends From<?,X>>groupBy in interface PathStream<X,S extends From<?,X>>groupBy in interface SearchStream<X,S extends From<?,X>>groupFunction - function returning an expression by which to group resultsFromStream<X,S> groupByMulti(Function<? super S,? extends List<Expression<?>>> groupFunction)
SearchStreamAdds to any previously specified groupings.
groupByMulti in interface ExprStream<X,S extends From<?,X>>groupByMulti in interface PathStream<X,S extends From<?,X>>groupByMulti in interface SearchStream<X,S extends From<?,X>>groupFunction - function returning a list of expressions by which to group resultsFromStream<X,S> having(Function<? super S,? extends Expression<Boolean>> havingFunction)
SearchStreamAdds to any previously specified "having" restrictions.
having in interface ExprStream<X,S extends From<?,X>>having in interface PathStream<X,S extends From<?,X>>having in interface SearchStream<X,S extends From<?,X>>havingFunction - function returning a test to apply to grouped resultsFromValue<X,S> findAny()
SearchStreamfindAny in interface ExprStream<X,S extends From<?,X>>findAny in interface PathStream<X,S extends From<?,X>>findAny in interface SearchStream<X,S extends From<?,X>>NULL if this stream is empty)FromValue<X,S> findFirst()
SearchStreamfindFirst in interface ExprStream<X,S extends From<?,X>>findFirst in interface PathStream<X,S extends From<?,X>>findFirst in interface SearchStream<X,S extends From<?,X>>NULL if this stream is empty)FromValue<X,S> findSingle()
SearchStream
Invoke this method only when you know that the result stream contains at most one value, e.g., when searching
for an object by its value in a field with a unique constraint. If the stream actually contains multiple values,
then invoking any of the "single value" SearchValue methods such as value() or
toOptional() will generate a NonUniqueResultException.
Using this method is preferable to using SearchStream.findFirst() or SearchStream.findAny() for the same purpose, because it
not only actually verifies the uniqueness assumption, but it also makes that assumption clearer in the code.
Example:
final User user = qb.stream(User.class)
.filter(u -> qb.equal(u.get(User_.username), username))
.findSingle()
.orElseThrow(NoSuchUserException::new);
findSingle in interface ExprStream<X,S extends From<?,X>>findSingle in interface PathStream<X,S extends From<?,X>>findSingle in interface SearchStream<X,S extends From<?,X>>NULL if this stream is empty)FromStream<X,S> fetch(SingularAttribute<? super X,?> attribute)
SearchStream
Equivalent to fetch(attribute, JoinType.INNER).
fetch in interface ExprStream<X,S extends From<?,X>>fetch in interface PathStream<X,S extends From<?,X>>fetch in interface SearchStream<X,S extends From<?,X>>attribute - associated propertyFromStream<X,S> fetch(SingularAttribute<? super X,?> attribute, JoinType joinType)
SearchStream
Unlike join(), this method does not change the stream's content type.
In other words, this method is used simply to pre-fetch an association, to avoid having to fetch it again
later for each individual element in the stream.
fetch in interface ExprStream<X,S extends From<?,X>>fetch in interface PathStream<X,S extends From<?,X>>fetch in interface SearchStream<X,S extends From<?,X>>attribute - associated propertyjoinType - join typeFromStream<X,S> fetch(PluralAttribute<? super X,?,?> attribute)
SearchStream
Equivalent to fetch(attribute, JoinType.INNER).
fetch in interface ExprStream<X,S extends From<?,X>>fetch in interface PathStream<X,S extends From<?,X>>fetch in interface SearchStream<X,S extends From<?,X>>attribute - associated propertyFromStream<X,S> fetch(PluralAttribute<? super X,?,?> attribute, JoinType joinType)
SearchStream
Unlike join(), this method does not change the stream's content type.
In other words, this method is used simply to pre-fetch an association, to avoid having to fetch it again
later for each individual element in the stream.
fetch in interface ExprStream<X,S extends From<?,X>>fetch in interface PathStream<X,S extends From<?,X>>fetch in interface SearchStream<X,S extends From<?,X>>attribute - associated propertyjoinType - join typeFromStream<X,S> bind(Ref<X,? super S> ref)
QueryStreambind in interface ExprStream<X,S extends From<?,X>>bind in interface PathStream<X,S extends From<?,X>>bind in interface QueryStream<X,S extends From<?,X>,AbstractQuery<?>,CriteriaQuery<X>,TypedQuery<X>>bind in interface SearchStream<X,S extends From<?,X>>ref - unbound referencerefFromStream<X,S> peek(Consumer<? super S> peeker)
QueryStream
This is useful in cases where the selection can be modified, e.g., setting join ON conditions
using Join.on().
peek in interface ExprStream<X,S extends From<?,X>>peek in interface PathStream<X,S extends From<?,X>>peek in interface QueryStream<X,S extends From<?,X>,AbstractQuery<?>,CriteriaQuery<X>,TypedQuery<X>>peek in interface SearchStream<X,S extends From<?,X>>peeker - peeker into stream<X2,S2 extends Selection<X2>> FromStream<X,S> bind(Ref<X2,? super S2> ref, Function<? super S,? extends S2> refFunction)
QueryStreambind in interface ExprStream<X,S extends From<?,X>>bind in interface PathStream<X,S extends From<?,X>>bind in interface QueryStream<X,S extends From<?,X>,AbstractQuery<?>,CriteriaQuery<X>,TypedQuery<X>>bind in interface SearchStream<X,S extends From<?,X>>X2 - type of the bound valueS2 - criteria type of the bound valueref - unbound referencerefFunction - function mapping this stream's Selection to the reference valueref<R> FromStream<X,S> addRoot(Ref<R,? super Root<R>> ref, Class<R> type)
SearchStream
To select the new root in a SearchStream, use SearchStream.map(),
providing a Function that returns ref.
Note that this effectively creates an unconstrained (cross product) join with the new root.
Typically there would be some additional restrictions imposed (e.g., via filter())
to relate the new root to the items in the stream.
addRoot in interface ExprStream<X,S extends From<?,X>>addRoot in interface PathStream<X,S extends From<?,X>>addRoot in interface SearchStream<X,S extends From<?,X>>R - type of the new query rootref - unbound referencetype - type of the new query rootref to a new query root from typeFromStream<X,S> filter(SingularAttribute<? super X,Boolean> attribute)
QueryStreamAdds to any previously specified filters.
filter in interface ExprStream<X,S extends From<?,X>>filter in interface PathStream<X,S extends From<?,X>>filter in interface QueryStream<X,S extends From<?,X>,AbstractQuery<?>,CriteriaQuery<X>,TypedQuery<X>>filter in interface SearchStream<X,S extends From<?,X>>attribute - boolean propertyFromStream<X,S> filter(Function<? super S,? extends Expression<Boolean>> predicateBuilder)
QueryStreamAdds to any previously specified filters.
filter in interface ExprStream<X,S extends From<?,X>>filter in interface PathStream<X,S extends From<?,X>>filter in interface QueryStream<X,S extends From<?,X>,AbstractQuery<?>,CriteriaQuery<X>,TypedQuery<X>>filter in interface SearchStream<X,S extends From<?,X>>predicateBuilder - function mapping this stream's item to a boolean ExpressionFromStream<X,S> limit(int maxSize)
QueryStreamDue to limitations in the JPA Criteria API, this method is not supported on subquery streams and in general must be specified last (after any filtering, sorting, grouping, joins, etc.).
limit in interface ExprStream<X,S extends From<?,X>>limit in interface PathStream<X,S extends From<?,X>>limit in interface QueryStream<X,S extends From<?,X>,AbstractQuery<?>,CriteriaQuery<X>,TypedQuery<X>>limit in interface SearchStream<X,S extends From<?,X>>maxSize - maximum number of elements to returnFromStream<X,S> skip(int num)
QueryStreamDue to limitations in the JPA Criteria API, this method is not supported on subquery streams and in general must be specified last (after any filtering, sorting, grouping, joins, etc.).
skip in interface ExprStream<X,S extends From<?,X>>skip in interface PathStream<X,S extends From<?,X>>skip in interface QueryStream<X,S extends From<?,X>,AbstractQuery<?>,CriteriaQuery<X>,TypedQuery<X>>skip in interface SearchStream<X,S extends From<?,X>>num - number of elements to skipFromStream<X,S> withFlushMode(FlushModeType flushMode)
QueryStreamFlushModeType associated with this query.withFlushMode in interface ExprStream<X,S extends From<?,X>>withFlushMode in interface PathStream<X,S extends From<?,X>>withFlushMode in interface QueryStream<X,S extends From<?,X>,AbstractQuery<?>,CriteriaQuery<X>,TypedQuery<X>>withFlushMode in interface SearchStream<X,S extends From<?,X>>flushMode - new flush modeQuery.setFlushMode(javax.persistence.FlushModeType)FromStream<X,S> withLockMode(LockModeType lockMode)
QueryStreamLockModeType associated with this query.withLockMode in interface ExprStream<X,S extends From<?,X>>withLockMode in interface PathStream<X,S extends From<?,X>>withLockMode in interface QueryStream<X,S extends From<?,X>,AbstractQuery<?>,CriteriaQuery<X>,TypedQuery<X>>withLockMode in interface SearchStream<X,S extends From<?,X>>lockMode - new lock modeQuery.setLockMode(javax.persistence.LockModeType)FromStream<X,S> withHint(String name, Object value)
QueryStreamwithHint in interface ExprStream<X,S extends From<?,X>>withHint in interface PathStream<X,S extends From<?,X>>withHint in interface QueryStream<X,S extends From<?,X>,AbstractQuery<?>,CriteriaQuery<X>,TypedQuery<X>>withHint in interface SearchStream<X,S extends From<?,X>>name - name of hintvalue - value of hintQuery.setHint(java.lang.String, java.lang.Object)FromStream<X,S> withHints(Map<String,Object> hints)
QueryStreamwithHints in interface ExprStream<X,S extends From<?,X>>withHints in interface PathStream<X,S extends From<?,X>>withHints in interface QueryStream<X,S extends From<?,X>,AbstractQuery<?>,CriteriaQuery<X>,TypedQuery<X>>withHints in interface SearchStream<X,S extends From<?,X>>hints - hints to addQuery.setHint(java.lang.String, java.lang.Object)<T> FromStream<X,S> withParam(Parameter<T> parameter, T value)
QueryStreamReplaces any previous binding of the same parameter.
withParam in interface ExprStream<X,S extends From<?,X>>withParam in interface PathStream<X,S extends From<?,X>>withParam in interface QueryStream<X,S extends From<?,X>,AbstractQuery<?>,CriteriaQuery<X>,TypedQuery<X>>withParam in interface SearchStream<X,S extends From<?,X>>T - parameter value typeparameter - the parameter to setvalue - parameter valueQuery.setParameter(javax.persistence.Parameter, Object)FromStream<X,S> withParam(Parameter<Date> parameter, Date value, TemporalType temporalType)
QueryStreamDate.
Replaces any previous binding of the same parameter.
withParam in interface ExprStream<X,S extends From<?,X>>withParam in interface PathStream<X,S extends From<?,X>>withParam in interface QueryStream<X,S extends From<?,X>,AbstractQuery<?>,CriteriaQuery<X>,TypedQuery<X>>withParam in interface SearchStream<X,S extends From<?,X>>parameter - the parameter to setvalue - parameter valuetemporalType - temporal type for valueQuery.setParameter(javax.persistence.Parameter, Date, TemporalType)FromStream<X,S> withParam(Parameter<Calendar> parameter, Calendar value, TemporalType temporalType)
QueryStreamCalendar.
Replaces any previous binding of the same parameter.
withParam in interface ExprStream<X,S extends From<?,X>>withParam in interface PathStream<X,S extends From<?,X>>withParam in interface QueryStream<X,S extends From<?,X>,AbstractQuery<?>,CriteriaQuery<X>,TypedQuery<X>>withParam in interface SearchStream<X,S extends From<?,X>>parameter - the parameter to setvalue - parameter valuetemporalType - temporal type for valueQuery.setParameter(javax.persistence.Parameter, Calendar, TemporalType)FromStream<X,S> withParams(Iterable<? extends ParamBinding<?>> params)
QueryStreamReplaces any previous bindings of the same parameters.
withParams in interface ExprStream<X,S extends From<?,X>>withParams in interface PathStream<X,S extends From<?,X>>withParams in interface QueryStream<X,S extends From<?,X>,AbstractQuery<?>,CriteriaQuery<X>,TypedQuery<X>>withParams in interface SearchStream<X,S extends From<?,X>>params - bindings to addQuery.setParameter(javax.persistence.Parameter, Object)FromStream<X,S> withLoadGraph(String name)
QueryStream
Equivalent to withHint("javax.persistence.loadgraph", name).
withLoadGraph in interface ExprStream<X,S extends From<?,X>>withLoadGraph in interface PathStream<X,S extends From<?,X>>withLoadGraph in interface QueryStream<X,S extends From<?,X>,AbstractQuery<?>,CriteriaQuery<X>,TypedQuery<X>>withLoadGraph in interface SearchStream<X,S extends From<?,X>>name - name of load graphFromStream<X,S> withFetchGraph(String name)
QueryStream
Equivalent to withHint("javax.persistence.fetchgraph", name).
withFetchGraph in interface ExprStream<X,S extends From<?,X>>withFetchGraph in interface PathStream<X,S extends From<?,X>>withFetchGraph in interface QueryStream<X,S extends From<?,X>,AbstractQuery<?>,CriteriaQuery<X>,TypedQuery<X>>withFetchGraph in interface SearchStream<X,S extends From<?,X>>name - name of fetch graphCopyright © 2023. All rights reserved.