2
votes

I have the Hibernate Enhanced Bytecodes to work at the Lazy loading at the column level. However, I used @Entity for the DTOs for the bytecode enhancement to work. However, we want to move away using any Annotations on our DTOs - is there a way to work this using only Hibernate Mapping files? I tried without Annotation and it did not enhance...

Thanks!

1

1 Answers

0
votes

The Hibernate enhancer determines if a class should be enhanced by delegating to an EnhancementContext implementation. The DefaultEnhancementContext enhances only by checking for the Entity annotation. The creation of this enhancement context is currently hard-coded into the Maven plugin implementation. You would need to achieve what you are asking for.