| If bytecode-enhancement is disabled, the lazy field with OneToOne association is not resolved. However if bytecode-enhancement is enabled, the lazy field is resolved(hibernate sends an additional sql statment to fetched the associated object). The configuration of hibernate-enhance-maven-plugin is below
test case project with db ddl is attached. Please run JPAUnitTestCase to reproduce this issue. |