Skip to content

Commit

Permalink
Merge pull request #7831 from stuartwdouglas/7433
Browse files Browse the repository at this point in the history
Generate entities in correct class loader
  • Loading branch information
gsmet authored Mar 13, 2020
2 parents 2c39bce + c434a07 commit e90c41f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ private void enhanceEntities(final JpaEntitiesBuildItem domainObjects,
try {
byte[] bytes = IoUtil.readClassAsBytes(HibernateOrmProcessor.class.getClassLoader(), className);
byte[] enhanced = hibernateEntityEnhancer.enhance(className, bytes);
additionalClasses.produce(new GeneratedClassBuildItem(true, className, enhanced != null ? enhanced : bytes));
additionalClasses.produce(new GeneratedClassBuildItem(false, className, enhanced != null ? enhanced : bytes));
} catch (IOException e) {
throw new RuntimeException("Failed to read Model class", e);
}
Expand Down

0 comments on commit e90c41f

Please sign in to comment.