When I attempt to use BeanDisplay on a Hibernate object, it fails when the object is lazily loaded. An example of the error is:
Unable to read class file for ....entities.Location_$$_jvst70_51.getCity()
The mapping is:
Comparing 5.4 to an older version, the difference appears to be that 5.4 is using PlasticProxyFactory. This is getMemberLocation:
The older version uses ClassFactory:
The importClass line changes it from the proxy to the real class. That step appears to be missing in the newer version.
Changing the new version to something like this, works around the issue, but I'm not confident enough in my knowledge of the code to know if it's correct:
Am I missing a new configuration setting or a requirement that would avoid this issue?