Hibernate Lazy Loading Proxy Incompatable w/ Other Frameworks
Posted
by bowsie
on Stack Overflow
See other posts from Stack Overflow
or by bowsie
Published on 2010-06-02T16:10:29Z
Indexed on
2010/06/02
16:14 UTC
Read the original article
Hit count: 210
hibernate
|lazy-loading
I've come across several instances where frameworks that take POJOs to do some work crap-out with proxied hibernate beans.
For example if I xml annotate a bean for framework X and pass it to framework X it doesn't recognise the bean because it is passed the proxied object - which has no annotations for framework X.
Is there a common solution to this? I'd prefer not to define the bean as eager loaded, or turn of lazy-loading anywhere in the application.
Thoughts? Thanks.
© Stack Overflow or respective owner