Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ignoring an existing persistence.xml file #6805

Closed
tisoft opened this issue Jan 27, 2020 · 1 comment · Fixed by #10107
Closed

Support ignoring an existing persistence.xml file #6805

tisoft opened this issue Jan 27, 2020 · 1 comment · Fixed by #10107
Labels
area/hibernate-orm Hibernate ORM kind/enhancement New feature or request
Milestone

Comments

@tisoft
Copy link
Contributor

tisoft commented Jan 27, 2020

Description
It should be possible to skip an existing persistence.xml file, that is contained in a JAR file dependency.

My use case for this is, that I need to import a legacy jar, that unfortunately contains a persistence.xml with unsupported entries. Fortunately I only need the classes from this jar, not the persistence configuration, so ignoring it would help me.

Implementation ideas
I see the following possibilities for this:

  • add an option to ignore all persistence.xml files, not in the currently build jar.
  • add an option to ignore all persistence.xml files contained in specific jars
  • add an option to ignore specific persistence units by name
    • The persistence XML files would need to be parsed, and if the unit name matches would be ignored
@mkueng1
Copy link

mkueng1 commented Feb 3, 2020

Perhaps it helps when it comes to priorization: it's not "just" a legacy topic - I have to use a library with JPA based logic which is also used in an EE application.

@Sanne Sanne added the area/hibernate-orm Hibernate ORM label Feb 4, 2020
tisoft added a commit to tisoft/quarkus that referenced this issue Jun 16, 2020
tisoft added a commit to tisoft/quarkus that referenced this issue Jun 16, 2020
tisoft added a commit to tisoft/quarkus that referenced this issue Jun 16, 2020
tisoft added a commit to tisoft/quarkus that referenced this issue Jun 16, 2020
tisoft added a commit to tisoft/quarkus that referenced this issue Jun 19, 2020
tisoft added a commit to tisoft/quarkus that referenced this issue Jun 19, 2020
@Sanne Sanne added this to the 1.6.0 - master milestone Jun 19, 2020
johnaohara pushed a commit to johnaohara/quarkus that referenced this issue Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/hibernate-orm Hibernate ORM kind/enhancement New feature or request
Projects
None yet
3 participants