public class AggregateMemberAnnotatedChildEntityMapDefinition extends Object implements ChildEntityDefinition
ChildEntityDefinition
that is used to detect Maps with entities as values annotated with
AggregateMember
. If such a field is found a ChildEntity
is created that delegates to the entities
in the annotated Map.Constructor and Description |
---|
AggregateMemberAnnotatedChildEntityMapDefinition() |
Modifier and Type | Method and Description |
---|---|
<T> Optional<ChildEntity<T>> |
createChildDefinition(Field field,
EntityModel<T> declaringEntity)
Inspect the given
field , which is declared on the given declaringEntity for the presence of a
Child Entity. |
public AggregateMemberAnnotatedChildEntityMapDefinition()
public <T> Optional<ChildEntity<T>> createChildDefinition(Field field, EntityModel<T> declaringEntity)
ChildEntityDefinition
field
, which is declared on the given declaringEntity
for the presence of a
Child Entity.createChildDefinition
in interface ChildEntityDefinition
T
- The type of entity on which the field is declaredfield
- The field potentially containing a Child entitydeclaringEntity
- The entity model declaring the fieldCopyright © 2010–2017. All rights reserved.