Jakarta Persistence (JPA) Method
void generateSchema(
String persistenceUnitName,
Map<?,?> map
)
Create database schemas and/or tables and/or create DDL scripts as determined by the supplied properties.
Called when schema generation is to occur as a separate phase from creation of the entity manager factory.
- Parameters:
persistenceUnitName- the name of the persistence unitmap- properties for schema generation; these may also contain provider-specific properties. The values of these properties override any values that may have been configured elsewhere.
- Throws:
- if insufficient or inconsistent configuration information is provided or if schema generation otherwise fails..PersistenceException
- Since:
- Jakarta Persistence (JPA) 2.1