Package org.hibernate.boot
Enum SchemaAutoTooling
- java.lang.Object
-
- java.lang.Enum<SchemaAutoTooling>
-
- org.hibernate.boot.SchemaAutoTooling
-
- All Implemented Interfaces:
Serializable,Comparable<SchemaAutoTooling>
public enum SchemaAutoTooling extends Enum<SchemaAutoTooling>
Defines the possible values for "hibernate.hbm2ddl.auto".
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATEDrop the schema and recreate it onSessionFactorystartup.CREATE_DROPDrop the schema and recreate it onSessionFactorystartup.CREATE_ONLYCreate the schema onSessionFactorystartup.DROPDrop the schema and don't recreate it.NONEDo not attempt to update nor validate the schema.UPDATEUpdate (alter) the schema onSessionFactorystartup.VALIDATEValidate the schema onSessionFactorystartup.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringexternalForm()static SchemaAutoToolinginterpret(String configurationValue)static SchemaAutoToolingvalueOf(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 onSessionFactorystartup.
-
CREATE_DROP
public static final SchemaAutoTooling CREATE_DROP
Drop the schema and recreate it onSessionFactorystartup. Additionally, drop the schema onSessionFactoryshutdown.
-
CREATE_ONLY
public static final SchemaAutoTooling CREATE_ONLY
Create the schema onSessionFactorystartup.
-
DROP
public static final SchemaAutoTooling DROP
Drop the schema and don't recreate it.
-
UPDATE
public static final SchemaAutoTooling UPDATE
Update (alter) the schema onSessionFactorystartup.
-
VALIDATE
public static final SchemaAutoTooling VALIDATE
Validate the schema onSessionFactorystartup.
-
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(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 nameNullPointerException- if the argument is null
-
externalForm
public String externalForm()
-
interpret
public static SchemaAutoTooling interpret(String configurationValue)
-
-