1 4 package test.ejb.cmr; 5 6 import javax.ejb.EntityBean ; 7 import javax.ejb.CreateException ; 8 9 import test.ejb.cmr.EmployeeAddressValue; 10 11 28 public abstract class EmployeeAddressBean implements EntityBean 29 { 30 36 public abstract Integer getId(); 37 public abstract void setId(Integer id); 38 39 45 public abstract String getDescription(); 46 47 51 public abstract void setDescription(String description); 52 53 57 public abstract EmployeeAddressValue getEmployeeAddressValue(); 58 59 63 public abstract void setEmployeeAddressValue(EmployeeAddressValue value); 64 65 68 public Integer ejbCreate(EmployeeAddressValue eav) throws CreateException { 69 setId(eav.getId()); 70 return eav.getId(); 71 } 72 } 73 | Popular Tags |