Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Hibernate 6: persistence configurations for Quarkus 3 #19427

@ahus1

Description

@ahus1

Description

As of Quarkus 3, persistence configurations in the properties file and a persistence XML file don't work together.

See: #17664 (comment) and #19387 (comment)

Quarkus will print a warning on every start:

A legacy persistence.xml file is present in the classpath. This file will be used to configure JPA/Hibernate ORM persistence units, and any configuration of the Hibernate ORM extension will be ignored. To ignore persistence.xml files instead, set the configuration property 'quarkus.hibernate-orm.persistence-xml.ignore' to 'true'.

I assume this is "the new way" of Quarkus 3, and we can't use the options any more as long as we continue to use a variant of persistence.xml. See also the migration guide for details.

So this task might be to migrate all persistence.xml to properties in the Quarkus world.

This might also be the way to support multiple persistence units when working with custom user providers ... we need to test if the current example still works.

Let's see if one could get rid of the warning?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    📤 Todo

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions