Interface RelationInterceptor
public interface RelationInterceptor
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd an entity to a to-many relation@Nullable EntityvoidremoveEntity(Entity entity) remove an entity from a relationvoidsetEntities(Iterable<Entity> entities) replace all values of a to many relationvoidset the value of a to one relation
-
Method Details
-
addEntity
add an entity to a to-many relation -
setEntity
set the value of a to one relation -
setEntities
replace all values of a to many relation -
getEntity
- Returns:
- the value of a to-one relation
-
removeEntity
remove an entity from a relation
-