Hi, I had the same problem which I resolved by replacing the ...Removal AwareCollection by "org.apache.ojb.broker.util.collections.ManageableVector"
Don't known if it a good solution, but it's seem to work fine... Le mer 03/03/2004 à 18:18, Klaus Ripplinger a écrit : > Hi, > > my problem: how to delete a relation when using "Non-Decomposed m:n Mapping". > After removing an object from a collection (RemovalAwareCollection) and > saving the object > (PersistenceBrokerFactory.defaultPersistenceBroker().store(Object o)) not only > the relation is deleted but also the ralated object, i.e. the one > that has been removed from the collection. Can this be avoided? F.e. i don't > want to delete a 'project' when removing a 'project' from 'user'. Only the entry > in the > indirection-table that mapps projects to users should be deleted. > > Regards > Klaus > > collection xml: > ... > <collection-descriptor > name="projects" > collection-class= > "org.apache.ojb.broker.util.collections.RemovalAwareCollection" > element-class-ref="com.imd.paris.base.Projects" > indirection-table="user_projects" > auto-delete="false" > auto-update="true"> > <fk-pointing-to-this-class column="user_id"/> > <fk-pointing-to-element-class column="project_id"/> > </collection-descriptor> > ... > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]