public enum SchemaAutoTooling extends Enum<SchemaAutoTooling>
Defines the possible values for "hbm2ddl_auto"
Enum Constant and Description |
---|
CREATE
Drop the schema and recreate it on SessionFactory startup.
|
CREATE_DROP
Drop the schema and recreate it on SessionFactory startup.
|
NONE
Do not attempt to update nor validate the schema.
|
UPDATE
Update (alter) the schema on SessionFactory startup.
|
VALIDATE
Validate the schema on SessionFactory startup.
|
Modifier and Type | Method and Description |
---|---|
static SchemaAutoTooling |
interpret(String configurationValue) |
static SchemaAutoTooling |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SchemaAutoTooling[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SchemaAutoTooling CREATE
Drop the schema and recreate it on SessionFactory startup.
public static final SchemaAutoTooling CREATE_DROP
Drop the schema and recreate it on SessionFactory startup. Additionally, drop the schema on SessionFactory shutdown.
public static final SchemaAutoTooling UPDATE
Update (alter) the schema on SessionFactory startup.
public static final SchemaAutoTooling VALIDATE
Validate the schema on SessionFactory startup.
public static final SchemaAutoTooling NONE
Do not attempt to update nor validate the schema.
public static SchemaAutoTooling[] values()
for (SchemaAutoTooling c : SchemaAutoTooling.values()) System.out.println(c);
public static SchemaAutoTooling 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 nullpublic static SchemaAutoTooling interpret(String configurationValue)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.