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 CREATE
Drop the schema and recreate it onSessionFactory
startup.CREATE_DROP
Drop the schema and recreate it onSessionFactory
startup.CREATE_ONLY
Create the schema onSessionFactory
startup.DROP
Drop the schema and don't recreate it.NONE
Do not attempt to update nor validate the schema.UPDATE
Update (alter) the schema onSessionFactory
startup.VALIDATE
Validate the schema onSessionFactory
startup.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
externalForm()
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.
-
-
-
Enum Constant Detail
-
CREATE
public static final SchemaAutoTooling CREATE
Drop the schema and recreate it onSessionFactory
startup.
-
CREATE_DROP
public static final SchemaAutoTooling CREATE_DROP
Drop the schema and recreate it onSessionFactory
startup. Additionally, drop the schema onSessionFactory
shutdown.
-
CREATE_ONLY
public static final SchemaAutoTooling CREATE_ONLY
Create the schema onSessionFactory
startup.
-
DROP
public static final SchemaAutoTooling DROP
Drop the schema and don't recreate it.
-
UPDATE
public static final SchemaAutoTooling UPDATE
Update (alter) the schema onSessionFactory
startup.
-
VALIDATE
public static final SchemaAutoTooling VALIDATE
Validate the schema onSessionFactory
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(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)
-
-