Bytecode Enhancement and OGM


#1

Anyone can tell me if OGM does support Bytecode Enhancement for lazy loading mechanism?
I just tried the entity definition with bytecode enhancement, it worked in Hibernate ORM, but for OGM, it seems not work, the one-to-one association still be loaded eagerly.


#2

So the official answer is: we don’t know :). We never tested OGM with bytecode enhancement.

We might have overridden the ORM behavior in OGM.

If you have some time, it would be nice to have a clean test so that we can check what’s going on.


#3

I’ve created an issue for this, feel free to add comments or a test case:
https://hibernate.atlassian.net/browse/OGM-1393

Thanks for the feedback,
Davide