1 package example.cmp.id; 2 3 import javax.ejb.CreateException; 4 5 35 abstract public class QuidditchBean extends com.caucho.ejb.AbstractEntityBean { 36 40 abstract public Student getStudent(); 41 45 abstract public void setStudent(Student student); 46 49 abstract public String getPosition(); 50 53 abstract public void setPosition(String position); 54 57 abstract public int getPoints(); 58 61 abstract public void setPoints(int points); 62 65 public Student ejbCreate(Student student, String position) 66 throws CreateException 67 { 68 setStudent(student); 69 setPosition(position); 70 71 return student; 72 } 73 76 public void ejbPostCreate(Student student, String position) 77 { 78 } 79 } 80 | Popular Tags |