-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Strange issue with multi-level parent/childs relationship
PostPosted: Mon Dec 08, 2008 5:47 pm 
Newbie

Joined: Mon Dec 08, 2008 5:38 pm
Posts: 1
Hibernate version:
2.0.1.GA

Hi,

I'm stuck with NHibernate because a multi-level parent/childs relationship (bags with invert="true" and lazy="true" and bidirectional) because
- the following exception is thrown during NHibernate's commit :
"collection was modified enumeration operation might not execute"
- in the method :
NHibernate.Impl.Printer.ToString(IEnumerator enumerator, EntityMode entityMode)
- only when I am in debug mode and I don't acess the to second level childs

My relations are the following :
HelpCategory
HelpItem
HelpItemLocalized (causing the issue when HelpItem entities are not proxied)

In this cas and after a lof of debugging in NHibernate core, I discover that :
- the method "NHibernate.Event.Default.FlushEntities(FlushEvent @event)" is loading the second level childs BUT NOT the third level
- the method "NHibernate.Impl.Printer.ToString(IEnumerator enumerator, EntityMode entityMode)" is loading the third level childs INSIDE the do ... while loop, causing the exception...

Any idea ?

Thank you very in advance because I alreadu spent some hours trying to solve this issue...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.