Skip to content

Commit a978f95

Browse files
committed
[quarkusio#31974][quarkusio#28629] Refactor the Hibernate processors
The configuration of Hibernate ORM and Hibernate Reactive processors will use the same method in HibernateProcessorUtil when possible. The original issue (quarkusio#31974) was about the dialect initialization, but I moved more configuration properties because it made sense (quarkusio#28629).
1 parent a19a1b6 commit a978f95

File tree

3 files changed

+56
-597
lines changed

3 files changed

+56
-597
lines changed

extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmCdiProcessor.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.quarkus.hibernate.orm.deployment;
22

3+
import static io.quarkus.hibernate.orm.deployment.util.HibernateProcessorUtil.hasEntities;
34
import static org.apache.commons.lang3.BooleanUtils.isFalse;
45

56
import java.lang.reflect.Modifier;
@@ -264,7 +265,7 @@ void registerBeans(HibernateOrmConfig hibernateOrmConfig,
264265
CombinedIndexBuildItem combinedIndex,
265266
List<PersistenceUnitDescriptorBuildItem> descriptors,
266267
JpaModelBuildItem jpaModel) {
267-
if (!HibernateOrmProcessor.hasEntities(jpaModel)) {
268+
if (!hasEntities(jpaModel)) {
268269
return;
269270
}
270271

@@ -293,7 +294,7 @@ void registerBeans(HibernateOrmConfig hibernateOrmConfig,
293294
void transformBeans(JpaModelBuildItem jpaModel, JpaModelIndexBuildItem indexBuildItem,
294295
BeanDiscoveryFinishedBuildItem beans,
295296
BuildProducer<BytecodeTransformerBuildItem> producer) {
296-
if (!HibernateOrmProcessor.hasEntities(jpaModel)) {
297+
if (!hasEntities(jpaModel)) {
297298
return;
298299
}
299300

0 commit comments

Comments
 (0)