From: Ricardo P. (JIRA) <nh...@gm...> - 2011-04-07 21:07:55
|
[ http://216.121.112.228/browse/NH-2632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20842#action_20842 ] Ricardo Peres commented on NH-2632: ----------------------------------- Sorry, Fabio: mapper.Class<Order>(ca => { ca.Table("`ORDER`"); ca.Lazy(false); ca.Id(x => x.Id, map => { map.Column("`ID`"); map.Generator(Generators.HighLow, g => g.Params(new { max_lo = "1000" })); }); ca.Property(x => x.Date, x => { x.NotNullable(true); x.Column("`DATE`"); }); ca.ManyToOne(c => c.Customer, a => { a.Column("`CUSTOMERID`"); a.NotNullable(true); a.Cascade(Cascade.All); a.Fetch(FetchKind.Join); }); } > Lazy Properties Causing An Exception If Containing Class Is Set To Not Lazy > --------------------------------------------------------------------------- > > Key: NH-2632 > URL: http://216.121.112.228/browse/NH-2632 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.1.0 > Reporter: Ricardo Peres > > As discussed in NHibernate-Development (http://groups.google.com/group/nhibernate-development/browse_thread/thread/703b76e5b82595d6), when a property is set to lazy but its containing class is set to not lazy, an exception occurs when loading an entity of this class. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |