Interface RelationDescriptor<S extends Relatable,​T extends Relatable>

    • Method Detail

      • getRelationName

        String getRelationName()
        Get relation name. Relation name should be unique per relation type. For example: "favouriteContentRelation", "watchRelation" etc.
        Returns:
        relation name.
      • getSourceClass

        Class<S> getSourceClass()
        Returns class of source entity of the relation. Source entity is always subclass of Relatable
        Returns:
        type of source entity
      • getTargetClass

        Class<T> getTargetClass()
        Returns class of target entity of the relation. Target entity is always subclass of Relatable
        Returns:
        type of target entity