Hi all Some news on my problem ... In fact this behavior ( deletion of roles when removing the cross reference ) only occurs when I'm NOT using the ObjectCacheDefaultImpl caching strategie.
It's strange to me ? Le sam 28/02/2004 à 02:32, olivier.nouguier a écrit : > Hi all, > I'm really lost with auto-delete feature... > > The model: > > 0,n 0,n > Actors ------------ Roles > > The RDBMS schema: > > actors ( id, ... ) > roles ( id, ... ) > actors_roles ( actor_id, role_id ) > > The problem: > > With the attached repository.xml, when I remove a role from an actor, > the role is also deleted from the table. But when I remove the actor, > the role is kept ????? > > All attribute are ( auto-update, auto-delete ) set to false. > > ojb-RC5 > > //---------------------------- > > Transaction tx = odmg.newTransaction(); > tx.begin(); > Actor actor = retrieveActor(id); > tx.lock(actor, Transaction.WRITE); > actor.removeRole(0); ( delegate actor.roles.remove(0) on a vector ) > > tx.commit(); > //---------------------------- > > > > > > ______________________________________________________________________ > --------------------------------------------------------------------- > 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]