JPA Method
in jakarta.persistence.spi.PersistenceProvider

boolean generateSchema(
  String persistenceUnitName, 
  Map<?,?> map
)


Create database schemas and/or tables and/or create DDL scripts as determined by the supplied properties.

Called by the Persistence class 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 value of these properties override any values that may have been configured elsewhere.
Return:
true if schema was generated, otherwise false
Throws:
PersistenceException - if insufficient or inconsistent configuration information is provided or if schema generation otherwise fails
Since:
JPA 2.1