Class EntityParameter

java.lang.Object
mc.core.model.base.EntityParameter
All Implemented Interfaces:
Serializable, IBaseEntity, ICoreEntity

@Entity public class EntityParameter extends Object implements IBaseEntity
entity to store additional properties in form of key/value pairs for any complex entity. generic feature, that can be used by core system functionality, or customer specific extensions. a higher level of logic must define suitable keys and how to read and store them.

keys must be unique for one complex entity. a unique constraint enforces that on the db level. program logic should make sure to not create a key for any CE twice, to avoid db erorr messages.

See Also:
  • Constructor Details

    • EntityParameter

      public EntityParameter()
      default constructor
    • EntityParameter

      public EntityParameter(String key, String value, ComplexEntity complexEntity)
      constructor with members
      Parameters:
      complexEntity - complex entity this parameter belongs to, must not be null
      key - unique key of parameter, must not be null
      value - of parameter
  • Method Details

    • getId

      public long getId()
      Specified by:
      getId in interface IBaseEntity
    • setId

      public void setId(long id)
      Specified by:
      setId in interface IBaseEntity
    • getKey

      public String getKey()
    • setKey

      public void setKey(String key)
    • getValue

      public String getValue()
    • setValue

      public void setValue(String value)
    • getComplexEntity

      public ComplexEntity getComplexEntity()
    • setComplexEntity

      public void setComplexEntity(ComplexEntity complexEntity)
    • equals

      public boolean equals(Object another)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object