Enum ValueClassification

  • All Implemented Interfaces:
    Serializable, Comparable<ValueClassification>

    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 Detail

      • 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.
    • Method Detail

      • values

        public static ValueClassification[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ValueClassification c : ValueClassification.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ValueClassification valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null