public class AggregateMemberAnnotatedChildEntityCollectionDefinition extends Object implements ChildEntityDefinition
ChildEntityDefinition
that is used to detect Collections of entities (field type
assignable to Iterable
) annotated with AggregateMember
. If such a field is found a ChildEntity
is created that delegates to the entities in the annotated collection.Constructor and Description |
---|
AggregateMemberAnnotatedChildEntityCollectionDefinition() |
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 AggregateMemberAnnotatedChildEntityCollectionDefinition()
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.