Skip to content

Commit

Permalink
Fix static JPA metamodel generated for Panache classes
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere committed Jan 26, 2024
1 parent f4b489b commit e745fe3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@

<!-- MicroProfile TCK versions used to be defined here but have moved to the concrete tck modules -->

<!-- Panache needs to run the hibernate-jpamodelgen annotation processor,
but version 6.3+ leads to issues in applications that use it too:
https://github.com/quarkusio/quarkus/issues/38378
As a workaround, we generate the static metamodel of Panache using an older version of jpamodelgen. -->
<hibernate-orm.jpamodelgen.for-panache.version>6.2.22.Final</hibernate-orm.jpamodelgen.for-panache.version>
<!-- Antlr 4 is used by the PanacheQL parser but also needs to match the requirements of Hibernate ORM 6.x-->
<antlr.version>4.13.0</antlr.version>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
<annotationProcessorPath>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<version>${hibernate-orm.jpamodelgen.for-panache.version}</version>
</annotationProcessorPath>
</annotationProcessorPaths>
<annotationProcessors>
Expand Down
1 change: 1 addition & 0 deletions extensions/panache/hibernate-orm-panache/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
<annotationProcessorPath>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<version>${hibernate-orm.jpamodelgen.for-panache.version}</version>
</annotationProcessorPath>
</annotationProcessorPaths>
<annotationProcessors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
<annotationProcessorPath>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<version>${hibernate-orm.jpamodelgen.for-panache.version}</version>
</annotationProcessorPath>
</annotationProcessorPaths>
<annotationProcessors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
<annotationProcessorPath>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<version>${hibernate-orm.jpamodelgen.for-panache.version}</version>
</annotationProcessorPath>
</annotationProcessorPaths>
<annotationProcessors>
Expand Down

0 comments on commit e745fe3

Please sign in to comment.