Skip to content

Commit 0d90a81

Browse files
committed
Use hibernate-processor instead of the hibernate-jpamodelgen
1 parent 998734a commit 0d90a81

File tree

12 files changed

+37
-23
lines changed
  • bom/application
  • docs/src/main/asciidoc
  • extensions/panache
    • hibernate-orm-panache-kotlin/runtime
    • hibernate-orm-panache/runtime
    • hibernate-reactive-panache-kotlin/runtime
    • hibernate-reactive-panache/runtime
  • integration-tests
    • gradle/src/main/resources/compile-only-lombok
    • hibernate-orm-data
    • hibernate-orm-jpamodelgen
    • maven/src/test/resources-filtered/projects

12 files changed

+37
-23
lines changed

bom/application/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5490,6 +5490,11 @@
54905490
<artifactId>hibernate-envers</artifactId>
54915491
<version>${hibernate-orm.version}</version>
54925492
</dependency>
5493+
<dependency>
5494+
<groupId>org.hibernate.orm</groupId>
5495+
<artifactId>hibernate-processor</artifactId>
5496+
<version>${hibernate-orm.version}</version>
5497+
</dependency>
54935498
<dependency>
54945499
<groupId>org.hibernate.orm</groupId>
54955500
<artifactId>hibernate-jpamodelgen</artifactId>

docs/src/main/asciidoc/hibernate-orm.adoc

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1695,8 +1695,8 @@ section of the Hibernate Validator guide for more details.
16951695
== Static metamodel and Jakarta Data
16961696

16971697
Both static metamodel and Jakarta Data capabilities of Hibernate ORM are available in Quarkus
1698-
through the `hibernate-jpamodelgen` annotation processor. Since it is an annotation processor,
1699-
you must configure the annotation processor in your build tool:
1698+
through the `hibernate-processor` annotation processor. Since it is an annotation processor,
1699+
you must configure it accordingly in your build tool:
17001700

17011701
[source,xml,role="primary asciidoc-tabs-target-sync-cli asciidoc-tabs-target-sync-maven"]
17021702
.pom.xml
@@ -1707,11 +1707,14 @@ you must configure the annotation processor in your build tool:
17071707
<annotationProcessorPaths>
17081708
<path>
17091709
<groupId>org.hibernate.orm</groupId>
1710-
<artifactId>hibernate-jpamodelgen</artifactId>
1710+
<artifactId>hibernate-processor</artifactId>
17111711
<!-- Note, no artifact version is required, it's managed by Quarkus. -->
17121712
</path>
17131713
<!-- other processors that may be required by your app -->
17141714
</annotationProcessorPaths>
1715+
<annotationProcessors>
1716+
<annotationProcessor>org.hibernate.processor.HibernateProcessor</annotationProcessor>
1717+
</annotationProcessors>
17151718
<!-- Other compiler plugin configuration options -->
17161719
</configuration>
17171720
</plugin>
@@ -1721,9 +1724,9 @@ you must configure the annotation processor in your build tool:
17211724
.build.gradle
17221725
----
17231726
// Enforce the version management of your annotation processor dependencies,
1724-
// so that there's no need to define an explicit version of the hibernate-jpamodelgen
1727+
// so that there's no need to define an explicit version of the hibernate-processor
17251728
annotationProcessor enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}")
1726-
annotationProcessor 'org.hibernate.orm:hibernate-jpamodelgen'
1729+
annotationProcessor 'org.hibernate.orm:hibernate-processor'
17271730
----
17281731

17291732
=== Static metamodel
@@ -1760,7 +1763,7 @@ For a more detailed overview of static metamodel, please refer to the link:{jaka
17601763

17611764
=== Jakarta Data
17621765

1763-
Jakarta Data requires, besides having the `hibernate-jpamodelgen` annotation processor in place, one extra dependency to be added:
1766+
Jakarta Data requires, besides having the `hibernate-processor` annotation processor in place, one extra dependency to be added:
17641767

17651768
[source,xml,role="primary asciidoc-tabs-target-sync-cli asciidoc-tabs-target-sync-maven"]
17661769
.pom.xml

extensions/panache/hibernate-orm-panache-kotlin/runtime/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@
109109
<annotationProcessorPaths>
110110
<annotationProcessorPath>
111111
<groupId>org.hibernate.orm</groupId>
112-
<artifactId>hibernate-jpamodelgen</artifactId>
112+
<artifactId>hibernate-processor</artifactId>
113113
<version>${hibernate-orm.version}</version>
114114
</annotationProcessorPath>
115115
</annotationProcessorPaths>
116116
<annotationProcessors>
117-
<annotationProcessor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</annotationProcessor>
117+
<annotationProcessor>org.hibernate.processor.HibernateProcessor</annotationProcessor>
118118
</annotationProcessors>
119119
</configuration>
120120
</execution>

extensions/panache/hibernate-orm-panache/runtime/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@
5858
<annotationProcessorPaths>
5959
<annotationProcessorPath>
6060
<groupId>org.hibernate.orm</groupId>
61-
<artifactId>hibernate-jpamodelgen</artifactId>
61+
<artifactId>hibernate-processor</artifactId>
6262
</annotationProcessorPath>
6363
</annotationProcessorPaths>
6464
<annotationProcessors>
65-
<annotationProcessor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</annotationProcessor>
65+
<annotationProcessor>org.hibernate.processor.HibernateProcessor</annotationProcessor>
6666
</annotationProcessors>
6767
</configuration>
6868
</plugin>

extensions/panache/hibernate-reactive-panache-kotlin/runtime/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@
118118
<annotationProcessorPaths>
119119
<annotationProcessorPath>
120120
<groupId>org.hibernate.orm</groupId>
121-
<artifactId>hibernate-jpamodelgen</artifactId>
121+
<artifactId>hibernate-processor</artifactId>
122122
<version>${hibernate-orm.version}</version>
123123
</annotationProcessorPath>
124124
</annotationProcessorPaths>
125125
<annotationProcessors>
126-
<annotationProcessor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</annotationProcessor>
126+
<annotationProcessor>org.hibernate.processor.HibernateProcessor</annotationProcessor>
127127
</annotationProcessors>
128128
</configuration>
129129
</execution>

extensions/panache/hibernate-reactive-panache/runtime/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@
6262
<annotationProcessorPaths>
6363
<annotationProcessorPath>
6464
<groupId>org.hibernate.orm</groupId>
65-
<artifactId>hibernate-jpamodelgen</artifactId>
65+
<artifactId>hibernate-processor</artifactId>
6666
</annotationProcessorPath>
6767
</annotationProcessorPaths>
6868
<annotationProcessors>
69-
<annotationProcessor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</annotationProcessor>
69+
<annotationProcessor>org.hibernate.processor.HibernateProcessor</annotationProcessor>
7070
</annotationProcessors>
7171
</configuration>
7272
</plugin>

integration-tests/gradle/src/main/resources/compile-only-lombok/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ dependencies {
2222
testCompileOnly "org.projectlombok:lombok:${lombokVersion}"
2323
testAnnotationProcessor "org.projectlombok:lombok:${lombokVersion}"
2424

25-
compileOnly "org.hibernate.orm:hibernate-jpamodelgen"
25+
compileOnly "org.hibernate.orm:hibernate-processor"
2626
compileOnly enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}")
27-
annotationProcessor "org.hibernate.orm:hibernate-jpamodelgen"
27+
annotationProcessor "org.hibernate.orm:hibernate-processor"
2828
annotationProcessor enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}")
2929

3030
testImplementation 'io.quarkus:quarkus-junit5'
@@ -45,4 +45,4 @@ compileTestJava {
4545

4646
test {
4747
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
48-
}
48+
}

integration-tests/hibernate-orm-data/pom.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,12 @@
136136
<annotationProcessorPaths>
137137
<path>
138138
<groupId>org.hibernate.orm</groupId>
139-
<artifactId>hibernate-jpamodelgen</artifactId>
139+
<artifactId>hibernate-processor</artifactId>
140140
</path>
141141
</annotationProcessorPaths>
142+
<annotationProcessors>
143+
<annotationProcessor>org.hibernate.processor.HibernateProcessor</annotationProcessor>
144+
</annotationProcessors>
142145
</configuration>
143146
</plugin>
144147
</plugins>

integration-tests/hibernate-orm-jpamodelgen/pom.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,12 @@
149149
<annotationProcessorPaths>
150150
<path>
151151
<groupId>org.hibernate.orm</groupId>
152-
<artifactId>hibernate-jpamodelgen</artifactId>
152+
<artifactId>hibernate-processor</artifactId>
153153
</path>
154154
</annotationProcessorPaths>
155+
<annotationProcessors>
156+
<annotationProcessor>org.hibernate.processor.HibernateProcessor</annotationProcessor>
157+
</annotationProcessors>
155158
</configuration>
156159
</plugin>
157160
</plugins>

integration-tests/maven/src/test/resources-filtered/projects/apt-in-annotation-processor-paths/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<annotationProcessorPaths>
6565
<path>
6666
<groupId>org.hibernate.orm</groupId>
67-
<artifactId>hibernate-jpamodelgen</artifactId>
67+
<artifactId>hibernate-processor</artifactId>
6868
</path>
6969
<path>
7070
<groupId>com.querydsl</groupId>

0 commit comments

Comments
 (0)