From: Emmanuel B. (JIRA) <no...@at...> - 2006-07-01 00:05:08
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1868?page=comments#action_23513 ] Emmanuel Bernard commented on HHH-1868: --------------------------------------- If your complain is related to // XXX: not works!!! assertTrue(((HibernateProxy) beanB).getHibernateLazyInitializer() .isUninitialized()); This is the case because you 've already loaded beanB in the persistence context (beanB.toString(), so it would be stupid for Hibernate to give you an uninitialized version. Let's stop this thread, it really belongs to user forums, not the bug reports. > Hibernate must not load any lazy assotiation until required > ----------------------------------------------------------- > > Key: HHH-1868 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1868 > Project: Hibernate3 > Type: Improvement > Components: core > Environment: Last from CVS, 3.2.0rc2, > Reporter: Sergey Vladimirov > Attachments: manytoonelazy.zip, manytoonelazy.zip > > > Hibenate should not load any assotiations until it is required. For example, if BeanA has field > private BeanB parent; > this field MUST NOT be loaded during BeanA loading, if field is marked as LAZY. It behaviour must have place even if NotFound action does not specified. > http://forum.hibernate.org/viewtopic.php?t=961373 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |