public interface MutablePersistentEntity<T,P extends PersistentProperty<P>> extends PersistentEntity<T,P>
PersistentEntity
s.hasIdProperty, hasVersionProperty
Modifier and Type | Method and Description |
---|---|
void |
addAssociation(Association<P> association)
Adds an
Association to the entity. |
void |
addPersistentProperty(P property)
Adds a
PersistentProperty to the entity. |
void |
setPersistentPropertyAccessorFactory(PersistentPropertyAccessorFactory factory)
Sets the
PersistentPropertyAccessorFactory for the entity. |
void |
verify()
Callback method to trigger validation of the
PersistentEntity . |
doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isConstructorArgument, isIdProperty, isVersionProperty
void addPersistentProperty(P property)
PersistentProperty
to the entity.property
- void addAssociation(Association<P> association)
Association
to the entity.association
- void verify() throws MappingException
PersistentEntity
. As MutablePersistentEntity
is not
immutable there might be some verification steps necessary after the object has reached is final state.MappingException
- in case the entity is invalidvoid setPersistentPropertyAccessorFactory(PersistentPropertyAccessorFactory factory)
PersistentPropertyAccessorFactory
for the entity. A PersistentPropertyAccessorFactory
creates PersistentPropertyAccessor
s for instances of this entity.factory
- must not be null.Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.