From: NHibernate J. <nh...@gm...> - 2009-06-19 09:35:49
|
EvictVisitor fix for non session associated collections ------------------------------------------------------- Key: NH-1847 URL: http://nhjira.koah.net/browse/NH-1847 Project: NHibernate Issue Type: Patch Components: Core Affects Versions: 2.1.0.Alpha3, 2.0.1.GA, 2.0.0.GA, 1.2.1 Reporter: Gediminas Guoba Hello, Could you please apply a change to NHibernate.Event.Default.EvictVisitor class method private void EvictCollection(IPersistentCollection collection) and change line: if (ce.LoadedPersister != null && ce.LoadedKey != null) to if (ce != null && ce.LoadedPersister != null && ce.LoadedKey != null) Issue: I have an object "A" whitch was reassociated with session. This object has a collection. When I trying to Evict object "A" from session I'm getting exception "Object is not set..." because collection is not reassociated with the session (I'm not sure if it is possible, because Lock method only allows proxy entities). Thanks in advance, Geddis -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://nhjira.koah.net/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <nh...@gm...> - 2009-06-20 03:30:52
|
[ http://nhjira.koah.net/browse/NH-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18257#action_18257 ] Fabio Maulo commented on NH-1847: --------------------------------- I'm sorry. We can't apply a patch without a failing test. > EvictVisitor fix for non session associated collections > ------------------------------------------------------- > > Key: NH-1847 > URL: http://nhjira.koah.net/browse/NH-1847 > Project: NHibernate > Issue Type: Patch > Components: Core > Affects Versions: 1.2.1, 2.0.0.GA, 2.0.1.GA, 2.1.0.Alpha3 > Reporter: Gediminas Guoba > > Hello, > Could you please apply a change to NHibernate.Event.Default.EvictVisitor class > method private void EvictCollection(IPersistentCollection collection) > and change line: > if (ce.LoadedPersister != null && ce.LoadedKey != null) > to > if (ce != null && ce.LoadedPersister != null && ce.LoadedKey != null) > Issue: > I have an object "A" whitch was reassociated with session. This object has a collection. When I trying to Evict object "A" from session I'm getting exception "Object is not set..." because collection is not reassociated with the session (I'm not sure if it is possible, because Lock method only allows proxy entities). > Thanks in advance, > Geddis -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://nhjira.koah.net/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <nh...@gm...> - 2009-07-04 15:49:48
|
[ http://nhjira.koah.net/browse/NH-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fabio Maulo updated NH-1847: ---------------------------- Affects Version/s: (was: 1.2.1) > EvictVisitor fix for non session associated collections > ------------------------------------------------------- > > Key: NH-1847 > URL: http://nhjira.koah.net/browse/NH-1847 > Project: NHibernate > Issue Type: Patch > Components: Core > Affects Versions: 2.0.0.GA, 2.0.1.GA, 2.1.0.Alpha3 > Reporter: Gediminas Guoba > > Hello, > Could you please apply a change to NHibernate.Event.Default.EvictVisitor class > method private void EvictCollection(IPersistentCollection collection) > and change line: > if (ce.LoadedPersister != null && ce.LoadedKey != null) > to > if (ce != null && ce.LoadedPersister != null && ce.LoadedKey != null) > Issue: > I have an object "A" whitch was reassociated with session. This object has a collection. When I trying to Evict object "A" from session I'm getting exception "Object is not set..." because collection is not reassociated with the session (I'm not sure if it is possible, because Lock method only allows proxy entities). > Thanks in advance, > Geddis -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://nhjira.koah.net/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <nh...@gm...> - 2009-07-09 15:22:07
|
[ http://nhjira.koah.net/browse/NH-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18390#action_18390 ] Fabio Maulo commented on NH-1847: --------------------------------- With know which is the method used to re-associate the entity to a new session and without know which is the cascade used in the mapping this patch does not have sense. Applying it may mean obscure a wrong mapping. > EvictVisitor fix for non session associated collections > ------------------------------------------------------- > > Key: NH-1847 > URL: http://nhjira.koah.net/browse/NH-1847 > Project: NHibernate > Issue Type: Patch > Components: Core > Affects Versions: 2.0.0.GA, 2.0.1.GA, 2.1.0.Alpha3 > Reporter: Gediminas Guoba > > Hello, > Could you please apply a change to NHibernate.Event.Default.EvictVisitor class > method private void EvictCollection(IPersistentCollection collection) > and change line: > if (ce.LoadedPersister != null && ce.LoadedKey != null) > to > if (ce != null && ce.LoadedPersister != null && ce.LoadedKey != null) > Issue: > I have an object "A" whitch was reassociated with session. This object has a collection. When I trying to Evict object "A" from session I'm getting exception "Object is not set..." because collection is not reassociated with the session (I'm not sure if it is possible, because Lock method only allows proxy entities). > Thanks in advance, > Geddis -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://nhjira.koah.net/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Fabio M. (JIRA) <nh...@gm...> - 2011-05-17 23:11:47
|
[ http://216.121.112.228/browse/NH-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fabio Maulo closed NH-1847. --------------------------- Resolution: Won't Fix > EvictVisitor fix for non session associated collections > ------------------------------------------------------- > > Key: NH-1847 > URL: http://216.121.112.228/browse/NH-1847 > Project: NHibernate > Issue Type: Patch > Components: Core > Affects Versions: 2.0.0.GA, 2.0.1.GA, 2.1.0.Alpha3 > Reporter: Gediminas Guoba > > Hello, > Could you please apply a change to NHibernate.Event.Default.EvictVisitor class > method private void EvictCollection(IPersistentCollection collection) > and change line: > if (ce.LoadedPersister != null && ce.LoadedKey != null) > to > if (ce != null && ce.LoadedPersister != null && ce.LoadedKey != null) > Issue: > I have an object "A" whitch was reassociated with session. This object has a collection. When I trying to Evict object "A" from session I'm getting exception "Object is not set..." because collection is not reassociated with the session (I'm not sure if it is possible, because Lock method only allows proxy entities). > Thanks in advance, > Geddis -- 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-05-17 23:11:50
|
[ http://216.121.112.228/browse/NH-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fabio Maulo reopened NH-1847: ----------------------------- > EvictVisitor fix for non session associated collections > ------------------------------------------------------- > > Key: NH-1847 > URL: http://216.121.112.228/browse/NH-1847 > Project: NHibernate > Issue Type: Patch > Components: Core > Affects Versions: 2.0.0.GA, 2.0.1.GA, 2.1.0.Alpha3 > Reporter: Gediminas Guoba > > Hello, > Could you please apply a change to NHibernate.Event.Default.EvictVisitor class > method private void EvictCollection(IPersistentCollection collection) > and change line: > if (ce.LoadedPersister != null && ce.LoadedKey != null) > to > if (ce != null && ce.LoadedPersister != null && ce.LoadedKey != null) > Issue: > I have an object "A" whitch was reassociated with session. This object has a collection. When I trying to Evict object "A" from session I'm getting exception "Object is not set..." because collection is not reassociated with the session (I'm not sure if it is possible, because Lock method only allows proxy entities). > Thanks in advance, > Geddis -- 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-05-17 23:13:47
|
[ http://216.121.112.228/browse/NH-1847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fabio Maulo closed NH-1847. --------------------------- Resolution: Incomplete 2 years waiting to know the mapped cascade are enough. > EvictVisitor fix for non session associated collections > ------------------------------------------------------- > > Key: NH-1847 > URL: http://216.121.112.228/browse/NH-1847 > Project: NHibernate > Issue Type: Patch > Components: Core > Affects Versions: 2.0.0.GA, 2.0.1.GA, 2.1.0.Alpha3 > Reporter: Gediminas Guoba > > Hello, > Could you please apply a change to NHibernate.Event.Default.EvictVisitor class > method private void EvictCollection(IPersistentCollection collection) > and change line: > if (ce.LoadedPersister != null && ce.LoadedKey != null) > to > if (ce != null && ce.LoadedPersister != null && ce.LoadedKey != null) > Issue: > I have an object "A" whitch was reassociated with session. This object has a collection. When I trying to Evict object "A" from session I'm getting exception "Object is not set..." because collection is not reassociated with the session (I'm not sure if it is possible, because Lock method only allows proxy entities). > Thanks in advance, > Geddis -- 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 |