Enum MappingStrengthType

  • All Implemented Interfaces:
    Serializable, Comparable<MappingStrengthType>

    public enum MappingStrengthType
    extends Enum<MappingStrengthType>
    Strength of the mapping defines how aggressively will the mapping be applied. The strongest mappings are applied all the time (regardless of the consequences) and the weakest mappings are applied only if nothing else can be applied.
    • Enum Constant Detail

      • STRONG

        public static final MappingStrengthType STRONG
        Always applied, regardless of context. Strong mappings enforce particular values.
      • NORMAL

        public static final MappingStrengthType NORMAL
        Apply the mapping unless there is a more specific change.
      • WEAK

        public static final MappingStrengthType WEAK
        Apply the mapping only if there is a no other change on target property and the target property does not have any value. This mapping strength is use to set initial (default) values for attributes and properties.
    • Method Detail

      • values

        public static MappingStrengthType[] 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 (MappingStrengthType c : MappingStrengthType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MappingStrengthType 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
      • value

        public String value()