01: package org.mockejb.test.entity;
02:
03: public interface Address extends javax.ejb.EJBLocalObject {
04:
05: public final static String JNDI_NAME = "mockejb/address";
06:
07: // unique ID of this bean
08: public long getId();
09:
10: public String getStreet();
11:
12: public void setStreet(String street);
13:
14: public String getCity();
15:
16: public void setCity(String city);
17:
18: public String getState();
19:
20: public void setState(String state);
21:
22: public String getZipCode();
23:
24: public void setZipCode(String zipCode);
25:
26: public String getCountry();
27:
28: public void setCountry(String country);
29:
30: /**
31: * Returns the owner of this address.
32: * For this example we assume that address can only belong to one person
33: * @return person
34: */
35: public Person getPerson();
36:
37: }
|