Menu

#62 Runtime Proxy/Hibernate LazyInit Issues

closed
None
5
2006-10-16
2006-10-07
No

Fix occasional problems with certain proxy classes
and Hibernate Lazy init DTO's.

Discussion

  • Matt Tierney

    Matt Tierney - 2006-10-07

    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

     
  • Matt Tierney

    Matt Tierney - 2006-10-07
    • status: open --> pending
     
  • Matt Tierney

    Matt Tierney - 2006-10-16
    • status: pending --> closed
     
  • 俞宏伟

    俞宏伟 - 2006-11-25

    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,

     

Log in to post a comment.