Enum Class ValueClassification

java.lang.Object
java.lang.Enum<ValueClassification>
org.hibernate.metamodel.ValueClassification
All Implemented Interfaces:
Serializable, Comparable<ValueClassification>, Constable

public enum ValueClassification extends Enum<ValueClassification>
At the end of the day, any "value mapping" (id, version, attribute, collection element, etc.) can be one of a few classifications. This defines an enumeration of those classifications.
  • Enum Constant Details

    • BASIC

      public static final ValueClassification BASIC
      The mapped value is a basic value (String, Date, etc).
    • ANY

      public static final ValueClassification ANY
      ANY is a Hibernate-specific concept. It is essentially a "reverse discrimination". Here, the association itself defines a discriminator to the associated entity, sort of the reverse of discriminator-inheritance. Here the various associated types can be unrelated in terms of mapped inheritance.
    • EMBEDDABLE

      public static final ValueClassification EMBEDDABLE
      An Embeddable value
    • ENTITY

      public static final ValueClassification ENTITY
      Reference to an entity
  • Method Details

    • values

      public static ValueClassification[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ValueClassification valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null