Interface Ref<ID,​E>

  • Type Parameters:
    ID - generic type of ID.
    E - generic type of the referenced entity. For flexibility not technically bound to GenericEntity so it can also be used for an external entity not satisfying any requirements.
    All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    GenericIdRef, IdRef

    public interface Ref<ID,​E>
    extends Serializable
    Interface for a reference to an entity via its ID. In most cases you want to use IdRef.
    • Method Detail

      • getId

        ID getId()
        Returns:
        the (ID of the referenced entity.