jackson-datatype-hibernate
jackson-datatype-hibernate copied to clipboard
Support `hibernate-enhance-maven-plugin` plugin
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
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).