From 091a47f510774d7eb8bbcee05bc5e9f128e69384 Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Fri, 15 May 2020 09:03:29 +0100 Subject: [PATCH] Make sure the proxies are generated after all entity enhancements --- .../quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java index 9273f86779d8a..7963259254a10 100644 --- a/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java +++ b/extensions/hibernate-orm/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/HibernateOrmProcessor.java @@ -84,6 +84,7 @@ import io.quarkus.deployment.builditem.LaunchModeBuildItem; import io.quarkus.deployment.builditem.LogCategoryBuildItem; import io.quarkus.deployment.builditem.SystemPropertyBuildItem; +import io.quarkus.deployment.builditem.TransformedClassesBuildItem; import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem; import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; import io.quarkus.deployment.configuration.ConfigurationError; @@ -262,6 +263,7 @@ public void defineJpaEntities( public void pregenProxies( JpaEntitiesBuildItem domainObjects, JpaModelIndexBuildItem indexBuildItem, + TransformedClassesBuildItem dependOnIt, //We need to generate the proxies after bytecode transformation happened List persistenceUnitDescriptorBuildItems, BuildProducer generatedClassBuildItemBuildProducer, BuildProducer producer) {