Class Config

java.lang.Object
africa.absa.inception.config.Config
All Implemented Interfaces:
Serializable

@Entity public class Config extends Object implements Serializable
The Config class stores the key, value and description for the config.
Author:
Marcus Portmann
See Also:
  • Constructor Details

    • Config

      public Config()
      Constructs a new Config.
  • Method Details

    • equals

      public boolean equals(Object object)
      Indicates whether some other object is "equal to" this one.
      Overrides:
      equals in class Object
      Parameters:
      object - the reference object with which to compare
      Returns:
      true if this object is the same as the object argument otherwise false
    • getCreated

      public LocalDateTime getCreated()
      Returns the date and time the config was created.
      Returns:
      the date and time the config was created
    • getDescription

      public String getDescription()
      Returns the description for the config.
      Returns:
      the description for the config
    • getKey

      public String getKey()
      Returns the key for the config.
      Returns:
      the key for the config
    • getUpdated

      public LocalDateTime getUpdated()
      Returns the date and time the config was last updated.
      Returns:
      the date and time the config was last updated
    • getValue

      public String getValue()
      Returns the value for the config.
      Returns:
      the value for the config
    • hashCode

      public int hashCode()
      Returns a hash code value for the object.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for the object
    • setDescription

      public void setDescription(String description)
      Set the description for the config.
      Parameters:
      description - the description for the config
    • setKey

      public void setKey(String key)
      Set the key for the config.
      Parameters:
      key - the key for the config
    • setValue

      public void setValue(String value)
      Set the value for the config.
      Parameters:
      value - the value for the config
    • onCreate

      protected void onCreate()
      The Java Persistence callback method invoked before the entity is created in the database.
    • onUpdate

      protected void onUpdate()
      The Java Persistence callback method invoked before the entity is updated in the database.