| Modifier and Type | Field and Description |
|---|---|
| public static final Action | CREATE
Database dropping will be generated followed by database creation. |
| public static final Action | CREATE_DROP
Drop the schema and recreate it on SessionFactory startup. |
| public static final Action | CREATE_ONLY
Database creation will be generated. |
| public static final Action | DROP
Database dropping will be generated. |
| private final String | |
| private final String | |
| public static final Action | NONE
No action will be performed. |
| public static final Action | UPDATE
"update" (Hibernate only) - update (alter) the database schema |
| public static final Action | VALIDATE
"validate" (Hibernate only) - validate the database schema |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| private static Action | |
| public static Action | Returns: The matching enum value. An empty value will returnNONE.The encountered config value value)Used to interpret the value of |
| public static Action | Returns: The matching enum value. An empty value will returnNONE.The encountered config value value)Used when processing JPA configuration to interpret the user config values. |
| public String | toString()
Overrides java. |
| public static Action | |
| public static Action[] |
| CREATE | back to summary |
|---|---|
| public static final Action CREATE Database dropping will be generated followed by database creation.
Corresponds to a call to | |
| CREATE_DROP | back to summary |
|---|---|
| public static final Action CREATE_DROP Drop the schema and recreate it on SessionFactory startup. Additionally, drop the schema on SessionFactory shutdown. Has no corresponding call to a SchemaManagementTool delegate. It is equivalent to a While this is a valid option for auto schema tooling, it is not a valid action to pass to SchemaManagementTool; instead it would be expected that the caller to SchemaManagementTool would split this into 2 separate requests for: | |
| CREATE_ONLY | back to summary |
|---|---|
| public static final Action CREATE_ONLY Database creation will be generated. This is an action introduced by JPA. Hibernate's
legacy hbm2ddl had no such action - its "create" action is actually equivalent to
Corresponds to a call to | |
| DROP | back to summary |
|---|---|
| public static final Action DROP Database dropping will be generated.
Corresponds to a call to | |
| externalHbm2ddlName | back to summary |
|---|---|
| private final String externalHbm2ddlName | |
| externalJpaName | back to summary |
|---|---|
| private final String externalJpaName | |
| NONE | back to summary |
|---|---|
| public static final Action NONE No action will be performed. Valid in JPA; compatible with Hibernate's hbm2ddl action of the same name.. | |
| UPDATE | back to summary |
|---|---|
| public static final Action UPDATE "update" (Hibernate only) - update (alter) the database schema | |
| VALIDATE | back to summary |
|---|---|
| public static final Action VALIDATE "validate" (Hibernate only) - validate the database schema | |
| Action | back to summary |
|---|---|
| private Action(String externalJpaName) | |
| Action | back to summary |
|---|---|
| private Action(String externalJpaName, String externalHbm2ddlName) | |
| getExternalHbm2ddlName | back to summary |
|---|---|
| public String getExternalHbm2ddlName() | |
| getExternalJpaName | back to summary |
|---|---|
| public String getExternalJpaName() | |
| hbm2ddlSetting | back to summary |
|---|---|
| private static Action hbm2ddlSetting(Action action) | |
| interpretHbm2ddlSetting | back to summary |
|---|---|
| public static Action interpretHbm2ddlSetting(Object value) Used to interpret the value of
| |
| interpretJpaSetting | back to summary |
|---|---|
| public static Action interpretJpaSetting(Object value) Used when processing JPA configuration to interpret the user config values. Generally
this will be a value specified by
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| valueOf | back to summary |
|---|---|
| public static Action valueOf(String name) | |
| values | back to summary |
|---|---|
| public static Action[] values() | |