1 package example.cmp.ejbql; 2 3 import java.rmi.*; 4 import java.util.*; 5 import javax.ejb.*; 6 7 /** 8 * Local interface for the House bean. 9 */ 10 public interface House extends EJBLocalObject { 11 12 /** 13 * returns the name of the house (CMP field). 14 */ 15 public String getName(); 16 17 /** 18 * returns a <code>Collection</code> of all Students living in this House 19 * (CMR field). 20 */ 21 public Collection getStudentList(); 22 23 } 24