01: package org.mockejb.test.entity;
02:
03: import java.util.Collection;
04:
05: public interface Person extends javax.ejb.EJBLocalObject {
06:
07: public final static String JNDI_NAME = "mockejb/customer";
08:
09: /**
10: * Primary key of the bean
11: * @return unique id of the person
12: */
13: long getId();
14:
15: String getFirstName();
16:
17: void setFirstName(String firstName);
18:
19: String getLastName();
20:
21: void setLastName(String lastName);
22:
23: // CMR methods
24: Collection getAddresses();
25:
26: void setAddresses(Collection addresses);
27:
28: }
|