Class JpaAttributeEntity<E>

java.lang.Object
org.keycloak.models.map.storage.jpa.JpaAttributeEntity<E>
All Implemented Interfaces:
Serializable, JpaChildEntity<E>
Direct Known Subclasses:
JpaAttributeEntityWithHashValue, JpaClientSessionNoteEntity, JpaPolicyConfigEntity, JpaResourceAttributeEntity, JpaSingleUseObjectNoteEntity, JpaUserSessionNoteEntity

@MappedSuperclass public abstract class JpaAttributeEntity<E> extends Object implements JpaChildEntity<E>
Interface for jpa child entities which are in form of attributes. In other words it contains name and value.
See Also:
  • Constructor Details

    • JpaAttributeEntity

      public JpaAttributeEntity()
    • JpaAttributeEntity

      public JpaAttributeEntity(E root, String name, String value)
  • Method Details

    • getId

      public UUID getId()
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getValue

      public String getValue()
    • setValue

      public void setValue(String value)
    • getParent

      public E getParent()
      Description copied from interface: JpaChildEntity
      Parent entity that should get its optimistic locking version updated upon changes in the child
      Specified by:
      getParent in interface JpaChildEntity<E>
    • setParent

      public void setParent(E root)
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object