-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Description
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
Labels
Type
Projects
Status