Enum ConvertOption

    • Enum Constant Detail

      • IGNORE_MISSING_ATTRIBUTES

        public static final ConvertOption IGNORE_MISSING_ATTRIBUTES
        Option to ignore rather than throw an exception when the target type has an attribute that is missing a matching attribute in the source type.
      • CREATE_NEW

        public static final ConvertOption CREATE_NEW
        Option to specify that the newly created object should be considered "new" i.e. is persisted when flushed. Note that this will not cause @PostCreate listeners to be invoked.
    • Method Detail

      • values

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

        public static ConvertOption 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