Skip to content

Commit

Permalink
Make sure the proxies are generated after all entity enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanne committed May 15, 2020
1 parent fb2eadc commit 091a47f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<PersistenceUnitDescriptorBuildItem> persistenceUnitDescriptorBuildItems,
BuildProducer<GeneratedClassBuildItem> generatedClassBuildItemBuildProducer,
BuildProducer<ProxyDefinitionsBuildItem> producer) {
Expand Down

0 comments on commit 091a47f

Please sign in to comment.