You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Hiu Yen Onn <yo...@shinyang.com.my> on 2003/10/16 10:07:15 UTC

m:n relations mapping...

how can i make a m:n mapping...? can u pls how???
i have been trying m:n decomposition method...but, the intermediary table is
not persisted any data...
actually, the data is persisted into the intermediary table, but then, it
was deleted..
pls show the way to do it.... thanks...



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Simple performance improvement Re: m:n relations mapping...

Posted by Andy Malakov <an...@transdecisions.com>.
Hello All,

UseCase: PersistenceBroker stores NEW object that has non-decomposed m:n relationship field.

Problem: Right after insert, PersistenceBrokerImpl calls storeCollections () method that performs redundant DELETE FROM...
operation.

Solution: It should be possible to pass current operation type update/insert to storeCollections () and avoid calling
deleteMtoNImplementor() in case of insert. This operation type is always available in any caller method.

P.S. Can somebody from OJB development confirm this message, please?


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org