Class AbstractIdentifiable

    • Constructor Detail

      • AbstractIdentifiable

        public AbstractIdentifiable()
    • Method Detail

      • setId

        public void setId​(Long id)
      • hashCode

        public abstract int hashCode()
        Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.
        Overrides:
        hashCode in class Object
      • equals

        public abstract boolean equals​(Object object)
        Important note: Two objects with the same class and non-null ID must be considered equal. If one or both IDs are nulls, the rest of the state can be used to determine equality.
        Overrides:
        equals in class Object