Class RevisionKey<ID>

  • Type Parameters:
    ID -
    All Implemented Interfaces:
    Serializable

    public class RevisionKey<ID>
    extends Object
    implements Serializable
    Primary key object for versioned entities - key consists of the key of the original entity plus the revision number
    Author:
    bas.rutten
    See Also:
    Serialized Form
    • Constructor Detail

      • RevisionKey

        public RevisionKey​(ID id,
                           int revision)
        Constructor
        Parameters:
        id - the ID of the original entity
        revision - the revision number
    • Method Detail

      • getRevision

        public int getRevision()
      • setRevision

        public void setRevision​(int revision)
      • getId

        public ID getId()
      • setId

        public void setId​(ID id)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object