Interface Persistence.SchemaManagementProperties
- All Known Implementing Classes:
PersistenceConfiguration
- Enclosing class:
Persistence
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSupplies a JDBCConnectionto use for executing schema management actions on the database.static final StringSpecifies whether the persistence provider creates database schemas in addition to creating database objects such as tables, sequences, constraints, and so on.static final StringAn application-provided SQL script to be executed when the schema is created.static final StringThe source of artifacts to be created.static final StringThe provider-generated SQL script which creates the schema when "jakarta.persistence.schema-generation.scripts.action" is set.static final StringThe action to be performed against the database.static final StringAn application-provided SQL script to be executed when the schema is dropped.static final StringThe source of artifacts to be dropped.static final StringThe provider-generated SQL script which drops the schema when "jakarta.persistence.schema-generation.scripts.action" is set.static final StringAn application-provided SQL script to be executed after the schema is created, typically used for loading data.static final StringThe action to be generated as a SQL script.
-
Field Details
-
SCHEMAGEN_DATABASE_ACTION
The action to be performed against the database.Standard actions are:
none,create,drop,drop-and-create,validate,populate.- See Also:
-
SCHEMAGEN_SCRIPTS_ACTION
The action to be generated as a SQL script.The script is generated in the location specified by "jakarta.persistence.schema-generation.scripts.create-target" or "jakarta.persistence.schema-generation.scripts.drop-target".
Standard actions are:
none,create,drop,drop-and-create.- See Also:
-
SCHEMAGEN_CREATE_SOURCE
The source of artifacts to be created.Standard sources are:
metadata,script,metadata-then-script,script-then-metadata.The location of the script source is specified by "jakarta.persistence.schema-generation.create-script-source".
- See Also:
-
SCHEMAGEN_DROP_SOURCE
The source of artifacts to be dropped.Standard sources are:
metadata,script,metadata-then-script,script-then-metadata.The location of the script source is specified by "jakarta.persistence.schema-generation.drop-script-source".
- See Also:
-
SCHEMAGEN_CREATE_SCRIPT_SOURCE
-
SCHEMAGEN_DROP_SCRIPT_SOURCE
-
SCHEMAGEN_LOAD_SCRIPT_SOURCE
-
SCHEMAGEN_CREATE_TARGET
The provider-generated SQL script which creates the schema when "jakarta.persistence.schema-generation.scripts.action" is set.An instance of
Writeror a string specifying the file URL of the DDL script.- See Also:
-
SCHEMAGEN_DROP_TARGET
The provider-generated SQL script which drops the schema when "jakarta.persistence.schema-generation.scripts.action" is set.An instance of
Writeror a string specifying the file URL of the DDL script.- See Also:
-
SCHEMAGEN_CREATE_SCHEMAS
Specifies whether the persistence provider creates database schemas in addition to creating database objects such as tables, sequences, constraints, and so on. The valuetruespecifies that the persistence provider creates schemas in the database or generates DDL containingCREATE SCHEMAcommands.If this property is not supplied, the provider does not create database schemas.
- Since:
- 4.0
- See Also:
-
SCHEMAGEN_CONNECTION
-