Interface PersistentEntityRoot<T>
- Type Parameters:
- T- The root type
- All Superinterfaces:
- jakarta.persistence.criteria.Expression<T>,- jakarta.persistence.criteria.FetchParent<T,,- T> - jakarta.persistence.criteria.From<T,,- T> - IExpression<T>,- ISelection<T>,- jakarta.persistence.criteria.Path<T>,- PersistentEntityFrom<T,,- T> - PersistentEntityPath<T>,- jakarta.persistence.criteria.Root<T>,- jakarta.persistence.criteria.Selection<T>,- jakarta.persistence.TupleElement<T>
public interface PersistentEntityRoot<T>
extends jakarta.persistence.criteria.Root<T>, PersistentEntityFrom<T,T> 
The persistent entity 
Root.- Since:
- 3.2
- Author:
- Denis Stepanov
- 
Method SummaryModifier and TypeMethodDescriptiondefault <Y> @NonNull jakarta.persistence.criteria.Expression<Y>id()Returns the entity ID expression.default <Y> @NonNull PersistentPropertyPath<Y>version()Returns the entity version expression.Methods inherited from interface jakarta.persistence.criteria.FetchParentfetch, fetch, fetch, fetch, fetch, fetch, getFetchesMethods inherited from interface jakarta.persistence.criteria.FromgetCorrelationParent, getJoins, isCorrelated, join, join, joinMap, joinMapMethods inherited from interface io.micronaut.data.model.jpa.criteria.IExpressionas, in, in, in, in, isBoolean, isComparable, isNotNull, isNull, isNumericMethods inherited from interface io.micronaut.data.model.jpa.criteria.ISelectionalias, getAlias, getCompoundSelectionItems, isCompoundSelectionMethods inherited from interface jakarta.persistence.criteria.Pathget, get, get, getParentPath, typeMethods inherited from interface io.micronaut.data.model.jpa.criteria.PersistentEntityFromjoin, join, join, join, join, join, join, join, join, join, join, join, joinCollection, joinCollection, joinList, joinList, joinSet, joinSetMethods inherited from interface io.micronaut.data.model.jpa.criteria.PersistentEntityPathget, getPersistentEntityMethods inherited from interface jakarta.persistence.criteria.RootgetModelMethods inherited from interface jakarta.persistence.TupleElementgetJavaType
- 
Method Details- 
id@NonNull default <Y> @NonNull jakarta.persistence.criteria.Expression<Y> id()Returns the entity ID expression.- Type Parameters:
- Y- The id type
- Returns:
- The ID expression
 
- 
versionReturns the entity version expression.- Type Parameters:
- Y- The version type
- Returns:
- The version expression
 
 
-