-
1. Re: How to model a one-to-many relationship in CMP 1.1 (JBos
haytona Dec 16, 2001 2:55 PM (in response to griveo2883)As far as I'm aware dependant objects are for adding ONE address object to an order object for example. For when a standard datatype (e.g. String) is not enough.
I made a pretty rough tutorial for CMP 1.1 relationships at
www.geocities.com/haytona/reltut
give it a go and leave me some feed back if you7 want it improved in any way.
To summarise how to do it:
Bean A has zero or more Bean B relations.
We would store the primary key of Bean A in Bean B. Then to get all relations of Bean A we would call a finder on Bean B to the effect of FindByBeanAPrimaryKey.
haytona -
2. Re: How to model a one-to-many relationship in CMP 1.1 (JBos
griveo2883 Dec 16, 2001 3:00 PM (in response to griveo2883)Hi, haytona !!!
Thank you very much for your quick, smart answer !!!
I will study your tutorial, and give feedback to you, but just the overview given in your message sounds GREAT !!!
I will try it
Again, THANK YOU VERY MUCH
Cheers
Luis