1 package example.cmp.map; 2 3 import javax.ejb.*; 4 5 24 abstract public class GradeBean extends com.caucho.ejb.AbstractEntityBean { 25 28 abstract public Student getStudent(); 29 33 abstract public void setStudent(Student student); 34 37 abstract public Course getCourse(); 38 42 abstract public void setCourse(Course course); 43 46 abstract public String getGrade(); 47 50 abstract public void setGrade(String grade); 51 52 55 public GradeKey ejbCreate(Student student, Course course, String grade) 56 throws CreateException 57 { 58 setStudent(student); 59 setCourse(course); 60 setGrade(grade); 61 62 return null; 63 } 64 65 68 public void ejbPostCreate(Student student, Course course, String grade) 69 throws CreateException 70 { 71 setStudent(student); 72 setCourse(course); 73 setGrade(grade); 74 } 75 } 76 77 | Popular Tags |