i using version 2.4, setting hibernate set collection << lazy="true" >>, when using dozer copy the properties from Model(hibernate's) to DTO, the hibernate did not load proxy object,but when change to using spring Beanutils util class copy model's properties to DTO it work well, the hibernate will load lazy proxy object from DB.
when dozer copy proxy object, the hibernate will load object from DB,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=1236069
This has been a tough issue to fix across the board. It
is hard to reproduce and the different strange use cases
seems to never end.
So, I removed reflection caching we were doing in the guts
of Dozer. My hope is that this will fix most, if not all,
of the issues once and for all.
After this has been verified by our testing organization
(Bruce inc.), we will be ready for the 2.4 release
Logged In: YES
user_id=1653562
Originator: NO
i found the bug not fixed.
i using version 2.4, setting hibernate set collection << lazy="true" >>, when using dozer copy the properties from Model(hibernate's) to DTO, the hibernate did not load proxy object,but when change to using spring Beanutils util class copy model's properties to DTO it work well, the hibernate will load lazy proxy object from DB.
when dozer copy proxy object, the hibernate will load object from DB,