Take a look at Tutorial 3. There is an example for what you want to do.

You can use PB (I'm using it myself).

About CUSTOMER_PRODUCT row, it 's managed by OJB. Don't worry about that. You just 
have to call your method "setProducts" from the customer instance.

Regards
Sylvain

-----Message d'origine-----
De: Ebersole, Steven [mailto:[EMAIL PROTECTED]
Date: mercredi, 26. f�vrier 2003 20:46
�: OJB Users List (E-mail)
Objet: PersistenceBroker and non-decomposed m:n mappings


I was reading the documentation on the possible use of "non-decomposed m:n
mappings", and had a quick question.  Is it possible to set up such a
mapping across an association table and still use the PB kernel?

I am thinking of a simple association table scenario, say like a
CUSTOMER_PRODUCT tables associating a CUSTOMER to the PRODUCTs its has
purchased.  Because the relationship is non-decomposed, there would be no
need for a CustomerProduct object.  But when adding products to a customer,
how can I get the CUSTOMER_PRODUCT row created?

Is that possible using the PersistenceBroker?


Steve Ebersole
IT Integration Engineer
Vignette Corporation 
Office: 512.741.4195
Mobile: 512.297.5438

Visit http://www.vignette.com

---------------------------------------------------------------------
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]

Reply via email to