Lazy property loading in Nhibernate and Spring

六眼飞鱼酱① 提交于 2019-12-24 10:49:01

问题


I'm using NHibernate 2.1.2 and Spring 1.3

I have two Text columns (blobs) in one of my classes. I'm trying to use lazy="true" for the mapping of those properties but NHProfiler still shows the two columns being added to the SELECT statement when the main object is loaded.

I'm using Spring.NHibernate session factory and have configured ProxyFactory with both Castle and Spring with no luck.


回答1:


So far I know that's something NOT included on the version 2.1.2

According this url, lazy properties is something quite new and it's already on the trunk ready to be released on next version

http://ayende.com/Blog/archive/2010/01/27/nhibernate-new-feature-lazy-properties.aspx

You can download the current trunk code or wait to 3.0 version :-)

https://nhibernate.jira.com/secure/ReleaseNote.jspa?projectId=10000&version=10293



来源:https://stackoverflow.com/questions/2572498/lazy-property-loading-in-nhibernate-and-spring

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!