Package io.micronaut.data.model.query
Class QueryModel.PropertyProjection
java.lang.Object
io.micronaut.data.model.query.QueryModel.Projection
io.micronaut.data.model.query.QueryModel.PropertyProjection
- Direct Known Subclasses:
QueryModel.AvgProjection,QueryModel.CountDistinctProjection,QueryModel.DistinctPropertyProjection,QueryModel.GroupPropertyProjection,QueryModel.MaxProjection,QueryModel.MinProjection,QueryModel.SumProjection
- Enclosing interface:
- QueryModel
A projection that obtains the value of a property of an entity.
-
Constructor Details
-
PropertyProjection
Default constructor.- Parameters:
propertyName- The property name
-
-
Method Details
-
getPropertyName
- Returns:
- The property name
-
aliased
Include an alias that is the same as the property name.- Returns:
- This property
-
setAlias
Sets the alias.- Parameters:
alias- the alias
-
getAlias
- Returns:
- The alias to use for the projection.
-