API Note
There is an ambiguity surrounding the value "create" here. The old-school
Hibernate configuration interprets this as the action CREATE, which drops
the schema before recreating it. The JPA standard interprets it to mean the action
CREATE_ONLY which does not first drop the schema.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final Action | CREATE
Drop and then recreate the schema. |
| public static final Action | CREATE_DROP
Drop the schema and then recreate it on |
| public static final Action | CREATE_ONLY
Create the schema. |
| public static final Action | DROP
Drop the schema. |
| public static final Action | NONE
No action. |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final Action | TRUNCATE
Truncate the tables in the schema. |
| public static final Action | UPDATE
Update (alter) the database schema. |
| public static final Action | VALIDATE
Validate the database schema. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | getExternalHbm2ddlName()
The string configuration value identifying this action in old-school Hibernate configuration via hibernate.hbm2ddl.auto. |
| public String | getExternalJpaName()
The string configuration value identifying this action in JPA-standard configuration via jakarta.persistence.schema-generation.database.action or jakarta.persistence.schema-generation.scripts.action. |
| public static Action | Returns: The matching enum value. An empty value will returnNONE.The encountered config value value)Interpret the value of the old-school Hibernate configuration property
hibernate.hbm2ddl.auto as an instance
of |
| public static Action | Returns: The matching enum value. An empty value will returnNONE.The encountered config value value)Interpret the value of the JPA-standard configuration property
jakarta.persistence.schema-generation.database.action
or jakarta.persistence.schema-generation.scripts.action
as an instance of |
| public String | toString()
Overrides java. |
| public static Action | |
| public static Action[] |
| ACTION_CREATE | back to summary |
|---|---|
public static final String ACTION_CREATE
| |
| ACTION_CREATE_ONLY | back to summary |
|---|---|
public static final String ACTION_CREATE_ONLY
| |
| ACTION_CREATE_THEN_DROP | back to summary |
|---|---|
public static final String ACTION_CREATE_THEN_DROP
| |
| ACTION_DROP | back to summary |
|---|---|
public static final String ACTION_DROP
| |
| ACTION_NONE | back to summary |
|---|---|
public static final String ACTION_NONE
| |
| ACTION_UPDATE | back to summary |
|---|---|
public static final String ACTION_UPDATE
| |
| ACTION_VALIDATE | back to summary |
|---|---|
public static final String ACTION_VALIDATE
| |
| CREATE | back to summary |
|---|---|
| public static final Action CREATE Drop and then recreate the schema. API Note This action is called | |
| CREATE_DROP | back to summary |
|---|---|
| public static final Action CREATE_DROP Drop the schema and then recreate it on
While this is a valid option for auto schema tooling, it's not a valid
action for the
API Note This action is not defined by JPA. | |
| CREATE_ONLY | back to summary |
|---|---|
| public static final Action CREATE_ONLY Create the schema. API Note This is an action introduced by JPA; the legacy HBM2DDL tool had
no such action. Its action named | |
| DROP | back to summary |
|---|---|
| public static final Action DROP Drop the schema. API Note Valid in JPA; identical to the HBM2DDL action of the same name. | |
| NONE | back to summary |
|---|---|
| public static final Action NONE No action. API Note Valid in JPA; identical to the HBM2DDL action of the same name. | |
| SPEC_ACTION_CREATE | back to summary |
|---|---|
public static final String SPEC_ACTION_CREATE
| |
| SPEC_ACTION_DROP | back to summary |
|---|---|
public static final String SPEC_ACTION_DROP
| |
| SPEC_ACTION_DROP_AND_CREATE | back to summary |
|---|---|
public static final String SPEC_ACTION_DROP_AND_CREATE
| |
| SPEC_ACTION_NONE | back to summary |
|---|---|
public static final String SPEC_ACTION_NONE
| |
| TRUNCATE | back to summary |
|---|---|
| public static final Action TRUNCATE Truncate the tables in the schema. API Note This action is not defined by JPA.
| |
| UPDATE | back to summary |
|---|---|
| public static final Action UPDATE Update (alter) the database schema. API Note This action is not defined by JPA. | |
| VALIDATE | back to summary |
|---|---|
| public static final Action VALIDATE Validate the database schema. API Note This action is not defined by JPA. | |
| Action | back to summary |
|---|---|
| private Action() | |
| getExternalHbm2ddlName | back to summary |
|---|---|
| public String getExternalHbm2ddlName() The string configuration value identifying this action in old-school Hibernate configuration via hibernate.hbm2ddl.auto. | |
| getExternalJpaName | back to summary |
|---|---|
| public String getExternalJpaName() The string configuration value identifying this action in JPA-standard configuration via jakarta.persistence.schema-generation.database.action or jakarta.persistence.schema-generation.scripts.action. | |
| interpretHbm2ddlSetting | back to summary |
|---|---|
| public static Action interpretHbm2ddlSetting(Object value) Interpret the value of the old-school Hibernate configuration property
hibernate.hbm2ddl.auto as an instance
of
| |
| interpretJpaSetting | back to summary |
|---|---|
| public static Action interpretJpaSetting(Object value) Interpret the value of the JPA-standard configuration property
jakarta.persistence.schema-generation.database.action
or jakarta.persistence.schema-generation.scripts.action
as an instance of
| |
| 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() | |