Hello
I'm designing a new system and based relationship in CMP with CMR;
in directory examples J2EE_HOME/doc/samples/cmpcustomer/customer
make deploy with deploytool:
Customer 1 - > n Address
For CustomerBean :
public abstract class CustomerBean
//access methods for cmp fields
public abstract String getCustomerID(); //primary key
public abstract void setCustomerID(String id);
public abstract String getFirstName();
public abstract void setFirstName(String firstName);
public abstract String getLastName();
public abstract void setLastName(String lastName);
//access methods for cmr fields
public abstract Collection getAddresses();
public abstract void setAddresses (Collection addresses);
public abstract Collection getSubscriptions();
public abstract void setSubscriptions (Collection subscriptions);
For AddressBean
//access methods for cmp fields
public abstract String getAddressID(); //primary key
public abstract void setAddressID(String id);
public abstract String getStreet();
public abstract void setStreet(String street);
public abstract String getCity();
public abstract void setCity(String city);
public abstract String getZip();
public abstract void setZip(String zip);
public abstract String getState();
public abstract void setState(String state);
The deploytool make 3 tables for this relationship. CustomerBeanTable;
AdressesBeanTable;CustomerAddress;
But, i don�t hoping, I would like that it generate 2 tables, and
AdressesBeanTable with one FK to CustomerBeanTable;
Please Help
Regards
�lvaro Mota
===========================================================================
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".