Class VersionedEntity<ID,​T extends AbstractEntity<ID>>

  • Type Parameters:
    ID - the type of the ID of the entity
    T - the type of the entity
    All Implemented Interfaces:
    Serializable

    public abstract class VersionedEntity<ID,​T extends AbstractEntity<ID>>
    extends AbstractEntity<RevisionKey<ID>>
    A versioned entity. This is a wrapper around the snapshot of the original entity and adds some additional properties related to auditing (e.g. revision number, time stamp of change, user responsible for the save)
    Author:
    bas.rutten
    See Also:
    Serialized Form
    • Constructor Detail

      • VersionedEntity

        public VersionedEntity​(T entity,
                               int revision)
        Constructor
        Parameters:
        entity - the original entity
        revision - the revision number