Parameter
{code} javax.persistence.schema-generation.create-database-schemas {code}
defined in JPA Specificaition is ignored when passed to generateSchema method:
{code} Map properties = new HashMap<>(); properties.put("javax.persistence.schema-generation.create-database-schemas", "true"); properties.put("javax.persistence.schema-generation.database.action", "create"); Persistence.generateSchema("puName", properties); {code}
Attached test cases contains hibernate example(where parameter is ignored) and ecliplselink eclipselink example(where it works correctly) |
|