1 4 package test.ejb.cmr; 5 6 import javax.ejb.EntityBean ; 7 import javax.ejb.CreateException ; 8 9 import test.ejb.cmr.EmployeeAddressLocal; 10 import test.ejb.cmr.EmployeeValue; 11 12 29 public abstract class EmployeeBean implements EntityBean 30 { 31 37 public abstract Integer getId(); 38 public abstract void setId(Integer id); 39 40 46 public abstract String getName(); 47 48 52 public abstract void setName(String name); 53 54 73 public abstract EmployeeAddressLocal getHomeAddress(); 74 75 79 public abstract void setHomeAddress(EmployeeAddressLocal address); 80 81 100 public abstract EmployeeAddressLocal getWorkAddress(); 101 102 106 public abstract void setWorkAddress(EmployeeAddressLocal address); 107 108 112 public abstract EmployeeValue getEmployeeValue(); 113 114 118 public abstract void setEmployeeValue(EmployeeValue value); 119 120 123 public Integer ejbCreate(EmployeeValue ev) throws CreateException { 124 setId(ev.getId()); 125 return ev.getId(); 126 } 127 } 128 | Popular Tags |