Class Exhibit


  • @Entity
    public class Exhibit
    extends Object
    Represents an exhibit of a cultural institution
    • Constructor Detail

      • Exhibit

        public Exhibit()
    • Method Detail

      • onCreate

        protected void onCreate()
        saves registration date on new exhibit save
      • equals

        public boolean equals​(Object o)
        Defines whether two exhibit instances are the same exhibit
        Overrides:
        equals in class Object
        Parameters:
        o - comparing object
        Returns:
        whether two exhibit instances are the same exhibit
      • hashCode

        public int hashCode()
        Gets the hash code of exhibit
        Overrides:
        hashCode in class Object
        Returns:
        hash code