1 package example.cmp.many2many; 2 3 import java.util.*; 4 5 19 abstract public class CourseBean extends com.caucho.ejb.AbstractEntityBean { 20 21 26 abstract public String getName(); 27 28 33 abstract public String getInstructor(); 34 35 40 abstract public Collection getStudentList(); 41 42 47 public void addStudent( Student student ) 48 { 49 this.getStudentList().add( student ); 50 } 51 52 57 public void removeStudent( Student student ) 58 { 59 this.getStudentList().remove( student ); 60 } 61 } 62 | Popular Tags |