jackson-datatype-hibernate icon indicating copy to clipboard operation
jackson-datatype-hibernate copied to clipboard

Support `hibernate-enhance-maven-plugin` plugin

Open hurelhuyag opened this issue 2 years ago • 8 comments

Compile-time class enhancement has advantages. When we use it hibernate does not need to create new classes at runtime. But this module is not working with the hibernate-enhance-maven-plugin. Because this enhancer plugin adds proxy to getters and Jackson serializer calls getter before detecting property state. We should find a way to detect property that is lazily loaded before invoking the getter method.

I have created a minimal project for demonstrating this behaviour.

https://github.com/hurelhuyag/demo-jackson-hibernate5-mininal

hurelhuyag avatar Dec 15 '21 05:12 hurelhuyag

This sounds useful! I don't have time or personal itch to work on this but I hope someone has -- and I will be happy to help improvement(s) merged in once ready, and to help with Jackson side aspects (I am not very Hibernaty savvy).

cowtowncoder avatar Jun 28 '22 22:06 cowtowncoder