M
- the mapped type acting as view onto the domain type.D
- the domain type.public static class EntityProjection.ContainerPropertyProjection<M,D> extends EntityProjection.PropertyProjection<M,D>
Collection
-like
or Map
-like container. Property paths within containers use the deeply unwrapped actual type of the
container as root type and as they cannot be tied immediately to the root entity.EntityProjection.ContainerPropertyProjection<M,D>, EntityProjection.ProjectionType, EntityProjection.PropertyProjection<M,D>
Modifier and Type | Method and Description |
---|---|
static <M,D> EntityProjection.ContainerPropertyProjection<M,D> |
nonProjecting(PropertyPath propertyPath,
TypeInformation<M> mappedType,
TypeInformation<D> domainType)
Create a non-projecting variant of a mapped type.
|
static <M,D> EntityProjection.ContainerPropertyProjection<M,D> |
projecting(PropertyPath propertyPath,
TypeInformation<M> mappedType,
TypeInformation<D> domainType,
List<EntityProjection.PropertyProjection<?,?>> properties,
EntityProjection.ProjectionType projectionType)
Create a projecting variant of a mapped type.
|
getPropertyPath, toString
findProperty, forEachRecursive, getActualDomainType, getActualMappedType, getDomainType, getMappedType, isClosedProjection, isProjection, iterator, nonProjecting, nonProjecting, projecting
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
and, and, and, and, empty, filter, flatMap, get, isEmpty, map, of, of, of, stream, toList, toSet, toStreamable, toStreamable
forEach, spliterator
public static <M,D> EntityProjection.ContainerPropertyProjection<M,D> projecting(PropertyPath propertyPath, TypeInformation<M> mappedType, TypeInformation<D> domainType, List<EntityProjection.PropertyProjection<?,?>> properties, EntityProjection.ProjectionType projectionType)
propertyPath
- the path
to the actual property.mappedType
- the target projection type. Must not be null.domainType
- the source domain type. Must not be null.properties
- properties to include.projectionType
- must not be null.EntityProjection.ContainerPropertyProjection
.public static <M,D> EntityProjection.ContainerPropertyProjection<M,D> nonProjecting(PropertyPath propertyPath, TypeInformation<M> mappedType, TypeInformation<D> domainType)
propertyPath
- the path
to the actual property.mappedType
- the target projection type. Must not be null.domainType
- the source domain type. Must not be null.EntityProjection.ContainerPropertyProjection
.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.