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 unit
map - 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:
PersistenceException - if insufficient or inconsistent configuration information is provided or if schema generation otherwise fails..
Since:
Jakarta Persistence (JPA) 2.1