A class have a lazy property address:
The following is the structure from debugger (Eclipse)
address = Address$$EnchanedrByCGLIB$$b3812
-----CGLIB$CALBACK_0 = CGLIBLazyInitializer
-----------initialized=true
-----------target = Address(id=29)
---------------street = "A"
---------------city="B"
---------------state="C"
---------------country="D"
---------------id = 59
-----street = null
-----city=null
-----state=null
-----country=null
-----id =null
From the object tree above, the address values are in the target property of the CGLIB$CALLBACK_0.
It is initialized. But if I call address.getId(), it will return null.
Is this a bug? Thanks!
|