> -----Original Message-----
> From: Alvaro Mota [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 11, 2001 20:13
> To: [EMAIL PROTECTED]
> Subject: relationship using EJB spec 2.0.
>
>
> Hi
> This is question regarding the relationship using EJB spec 2.0.
>
> I need to build an EJBs' relationships that the relation have
> atribbutes
> using CMP 2.0.
>
> For example:
>
> Let's say I have a Person entity bean that
> has a one-to-many relationship with an Address
> entity bean (A Person can have many Address
> and an address can have for one person).
>
> For Person:
>
> in PersonEJB:
>
> abstract Collection getAddresses();
> abstract void setAddresses(Collection addresses);
> void addAddress(Address address);
> void removeAddress(Address address);
> ArrayList getListAddresses();
>
> For addresses:
>
> in AddressEJB:
>
> how make????

abstract Person getPerson();
abstract void setPerson(Person person);


>
> Please give some ideas or comments to this small problem,
> because I don't really know CMP;
>
> I would like that generate 2 tables.
>
> Table
> Person
> Table
> Address with one Fk to Person.
>
> j2ee -implementation reference: 1.3 beta 2
> JVM sun 1.3
>

- Avi
--
This signature intentionally left blank.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to