Hi All...

I'm trying to figure out how to model a one to many relationship. If I have 
a record for a person in a person table, and then I have a table with 
address records, and each person can have from 0 to say 3 addresses, how do 
I model this?

My first thought is to put some kind of collection (like a list) into the 
entity bean that represents the person data/database record and place a 
rferences to entity beans which represent addresses (address records) into 
the collection. I suppose with bean managed persistence I could do this.

Can I somehow do this with container managed persistence? Is this 
completely wrong?

Thanks...

Jim

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to