We're updating the issue view to help you get more done. 

javax.persistence.schema-generation.create-database-schemas is ignored

Description

Parameter

1 javax.persistence.schema-generation.create-database-schemas

defined in JPA Specificaition is ignored when passed to generateSchema method:

1 2 3 4 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);

Attached test cases contains hibernate example(where parameter is ignored) and eclipselink example(where it works correctly)

Environment

JDK Version: 1.8.0_161

Status

Assignee

Unassigned

Reporter

Bartlomiej Niemiec

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.4.2

Priority

Major