Hi, dondragon2,
Thanks for reporting this problem. I think you found a bug. Proxy
fields are not populated by design. Getters/setters are invoked on the
original object and therefore should return data. However, when you
invoke a non-getter/setter method it is invoked on the proxy.
Consequently any method trying to access the object's private fields
will get the nulls.
I am going to introduce a patch which will redirect non-getter/setter
calls to the original POJO object. There will still be a (hopefully
acceptable) caveat. You will be able to access private fields using
_this_ instance, but trying to access private fields of another
instance may be problematic if the other instance is an enhanced
proxy. I can see how this could be problematic for the "equals"
methods. So I will create a special case for the "equals" method and
replace proxies with the originals.
Maybe the cleanest solution would be to keep field values in sync
between the proxies and the original POJOs. I am going to investigate
this possibility.
Thanks,
Yegor