1 package example.cmp.one2many; 2 3 import java.util.*; 4 5 30 abstract public class HouseBean extends com.caucho.ejb.AbstractEntityBean { 31 32 36 abstract public String getName(); 37 38 44 abstract public Collection getStudentList(); 45 46 50 public void addStudent(Student student) 51 { 52 getStudentList().add(student); 53 } 54 55 58 public void removeStudent(Student student) 59 { 60 getStudentList().remove(student); 61 } 62 63 } 64 | Popular Tags |