Interface RelationInterceptor
public interface RelationInterceptor
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add an entity to a to-many relation@Nullable Entity
void
removeEntity
(Entity entity) remove an entity from a relationvoid
setEntities
(Iterable<Entity> entities) replace all values of a to many relationvoid
set 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
-