Package org.hibernate.boot
Enum SchemaAutoTooling
- java.lang.Object
-
- java.lang.Enum<SchemaAutoTooling>
-
- org.hibernate.boot.SchemaAutoTooling
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SchemaAutoTooling>
public enum SchemaAutoTooling extends java.lang.Enum<SchemaAutoTooling>
Defines the possible values for "hbm2ddl_auto"
-
-
Enum Constant Summary
Enum Constants Enum Constant 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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SchemaAutoTooling
interpret(java.lang.String configurationValue)
static SchemaAutoTooling
valueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
CREATE
public static final SchemaAutoTooling CREATE
Drop the schema and recreate it on SessionFactory startup.
-
CREATE_DROP
public static final SchemaAutoTooling CREATE_DROP
Drop the schema and recreate it on SessionFactory startup. Additionally, drop the schema on SessionFactory shutdown.
-
UPDATE
public static final SchemaAutoTooling UPDATE
Update (alter) the schema on SessionFactory startup.
-
VALIDATE
public static final SchemaAutoTooling VALIDATE
Validate the schema on SessionFactory startup.
-
NONE
public static final SchemaAutoTooling NONE
Do not attempt to update nor validate the schema.
-
-
Method Detail
-
values
public static SchemaAutoTooling[] 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 (SchemaAutoTooling c : SchemaAutoTooling.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SchemaAutoTooling valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
interpret
public static SchemaAutoTooling interpret(java.lang.String configurationValue)
-
-