Class BaseEntity<I extends Comparable<I> & Serializable>

    • Constructor Detail

      • BaseEntity

        public BaseEntity()
    • Method Detail

      • hashCode

        public int hashCode()
        Hashes by default the ID.
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object other)
        Compares by default by entity class (proxies taken into account) and ID.
        Overrides:
        equals in class Object
      • toString

        public String toString()
        The default format is ClassName[{id}] where {id} defaults to @hashcode when null.
        Overrides:
        toString in class Object