Skip to content

javax.persistence.schema-generation.database.action may be ignored #25054

@wilkinsona

Description

@wilkinsona

Either javax.persistence.schema-generation.database.action or hibernate.hbm2ddl.auto can be used to control schema creation when using Hibernate, with the latter property taking precedence over the former.

When HibernateDefaultDdlAutoProvider determines that the default should be create-drop, hibernate.hbm2ddl.auto is set with that value. Due to the Hibernate property taking precedence, if the user has set javax.persistence.schema-generation.database.action it is now ignored.

When checking for a user-provided setting before configuring the default setting, I think we need to consider javax.persistence.schema-generation.database.action as well as hibernate.hbm2ddl.auto.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededAn issue that has been superseded by anothertype: bugA general bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions