Enum Class SchemaAutoTooling

java.lang.Object
java.lang.Enum<SchemaAutoTooling>
org.hibernate.boot.SchemaAutoTooling
All Implemented Interfaces:
Serializable, Comparable<SchemaAutoTooling>, Constable

public enum SchemaAutoTooling extends Enum<SchemaAutoTooling>
Defines the possible values for "hibernate.hbm2ddl.auto".
  • Enum Constant Details

    • 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.
    • CREATE_ONLY

      public static final SchemaAutoTooling CREATE_ONLY
      Create the schema on SessionFactory 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 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 Details

    • values

      public static SchemaAutoTooling[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SchemaAutoTooling valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • externalForm

      public String externalForm()
    • interpret

      public static SchemaAutoTooling interpret(String configurationValue)