public enum CommentPolicy extends Enum<CommentPolicy>
Comment annotation to database.Comment,
MySqlDialect column implementation| Enum Constant and Description |
|---|
ALWAYS
Write all available comments from annotations to database on each meta-model loading event.
|
FOR_NEW_OBJECT
Assign the comment for a new table or new column.
|
NEVER
No comments are assigned
|
ON_ANY_CHANGE
Assign all available comments from annotations to database on a new database object event,
exactly on new table, column or index.
|
| Modifier and Type | Method and Description |
|---|---|
static CommentPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommentPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommentPolicy ON_ANY_CHANGE
public static final CommentPolicy FOR_NEW_OBJECT
public static final CommentPolicy NEVER
public static final CommentPolicy ALWAYS
public static CommentPolicy[] values()
for (CommentPolicy c : CommentPolicy.values()) System.out.println(c);
public static CommentPolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullCopyright 2013, Pavel Ponec