From: Ricardo P. (JIRA) <nh...@gm...> - 2011-04-08 23:56:50
|
Collection Is Null In Lazy Class -------------------------------- Key: NH-2639 URL: http://216.121.112.228/browse/NH-2639 Project: NHibernate Issue Type: Bug Components: Core Affects Versions: 3.2.0 Reporter: Ricardo Peres Attachments: Test2.cs A declared is declared as lazy and has a set property also lazy. When loading an entity, the set property is null. Mapping is made with the trunk version of by code mapping. -- 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 |
From: Fabio M. (JIRA) <nh...@gm...> - 2011-04-10 23:05:00
|
[ http://216.121.112.228/browse/NH-2639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fabio Maulo closed NH-2639. --------------------------- Resolution: Not an Issue Wrong mapping. The relation is mapped if inverse=true in both sides. Ricardo, if you are learning NHibernate before use the mapping by XML or by-code you have to read our documentation. The other possibility is the usage of ConfORM project. > Collection Is Null In Lazy Class > -------------------------------- > > Key: NH-2639 > URL: http://216.121.112.228/browse/NH-2639 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.2.0 > Reporter: Ricardo Peres > Attachments: Test2.cs > > > A declared is declared as lazy and has a set property also lazy. When loading an entity, the set property is null. Mapping is made with the trunk version of by code mapping. -- 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 |
From: Ricardo P. (JIRA) <nh...@gm...> - 2011-04-11 08:59:07
|
[ http://216.121.112.228/browse/NH-2639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20880#action_20880 ] Ricardo Peres commented on NH-2639: ----------------------------------- Fabio, Yes, I am always learning, from you and others, but I know what inverse is... and I don't have inverse=true on both sides. Did you look at the code? Even if I had, that wouldn't explain why it works when the class is not lazy, and not when it is lazy. I asked about this on nhusers, nobody answered. > Collection Is Null In Lazy Class > -------------------------------- > > Key: NH-2639 > URL: http://216.121.112.228/browse/NH-2639 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.2.0 > Reporter: Ricardo Peres > Attachments: Test2.cs > > > A declared is declared as lazy and has a set property also lazy. When loading an entity, the set property is null. Mapping is made with the trunk version of by code mapping. -- 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 |
From: Ricardo P. (JIRA) <nh...@gm...> - 2011-04-11 11:00:09
|
[ http://216.121.112.228/browse/NH-2639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20881#action_20881 ] Ricardo Peres commented on NH-2639: ----------------------------------- Test project is here: http://cid-0450c015fc418de2.office.live.com/self.aspx/.Public/NHTest.zip. > Collection Is Null In Lazy Class > -------------------------------- > > Key: NH-2639 > URL: http://216.121.112.228/browse/NH-2639 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.2.0 > Reporter: Ricardo Peres > Attachments: Test2.cs > > > A declared is declared as lazy and has a set property also lazy. When loading an entity, the set property is null. Mapping is made with the trunk version of by code mapping. -- 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 |
From: Ricardo P. (JIRA) <nh...@gm...> - 2011-04-12 14:00:13
|
[ http://216.121.112.228/browse/NH-2639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20896#action_20896 ] Ricardo Peres commented on NH-2639: ----------------------------------- It works fine with the old Castle bytecode provider. > Collection Is Null In Lazy Class > -------------------------------- > > Key: NH-2639 > URL: http://216.121.112.228/browse/NH-2639 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.2.0Alpha1 > Reporter: Ricardo Peres > Attachments: Test2.cs > > > A declared is declared as lazy and has a set property also lazy. When loading an entity, the set property is null. Mapping is made with the trunk version of by code mapping. -- 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 |