> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Alvaro Mota
> 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);
Actually, this should read
void addAddress(AddressLocal address);
> void removeAddress(Address address);
> ArrayList getListAddresses();
>
> For addresses:
>
> in AddressEJB:
> how make????
abstract public PersonLocal getPerson();
abstract public setPerson(PersonLocal person);
You should take a look at the files generated by EJBGen
(http://beust.com/cedric/ejbgen), it will make sense afterwards.
--
Cedric
===========================================================================
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".