public enum ConvertOption extends java.lang.Enum<ConvertOption>
EntityViewManager.convert(Object, Class, ConvertOption...)
.EntityViewManager.convert(Object, Class, ConvertOption...)
Enum Constant | Description |
---|---|
CREATE_NEW |
Option to specify that the newly created object should be considered "new" i.e. is persisted when flushed.
|
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.
|
Modifier and Type | Method | Description |
---|---|---|
static ConvertOption |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ConvertOption[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConvertOption IGNORE_MISSING_ATTRIBUTES
public static final ConvertOption CREATE_NEW
@PostCreate
listeners to be invoked.public static ConvertOption[] values()
for (ConvertOption c : ConvertOption.values()) System.out.println(c);
public static ConvertOption valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2014–2018 Blazebit. All rights reserved.