Did you ever resolve this? I have the same issue now. On Tue, Jan 11, 2011 at 3:21 AM, David <[email protected]> wrote:
> Has anyone seen this before? > > "cannot recreate collection while filter is enabled" > > We're running NH3 GA and are using filters to make sure the corrent > SQL partition is hit by including the partition column in the filter > (a bit flag) > > We have table tA and a relation table tR that contains the many-to- > many relations with links to the other table tB > Both tables has the partition column "active" which is the partition > key. > > In entity As hbm file we have this mapping for the many-to-many > relation: > > <bag name="Bees" table="tB" lazy="true" cascade="all"> > <key column="aId" /> > <many-to-many class="BBusinessEntity" column="bId"></many-to- > many> > <filter name="isActiveFilter" condition=":isActive = active" /> > </bag> > > When we try to add a new B item we get the message: "cannot recreate > collection while filter is enabled" if we do not disable the session > filter before the call. > Is this by design, or is there a nicer work around? > > > BR, > David > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
