Interface RelationInterceptor


public interface RelationInterceptor
  • Method Details

    • addEntity

      void addEntity(Entity entity)
      add an entity to a to-many relation
    • setEntity

      void setEntity(Entity entity)
      set the value of a to one relation
    • setEntities

      void setEntities(Iterable<Entity> entities)
      replace all values of a to many relation
    • getEntity

      @Nullable @Nullable Entity getEntity()
      Returns:
      the value of a to-one relation
    • removeEntity

      void removeEntity(Entity entity)
      remove an entity from a relation