example.cmp.relations.one2one
Interface Course

All Superinterfaces:
javax.ejb.EJBLocalObject

public interface Course
extends javax.ejb.EJBLocalObject

Local interface for the Course bean.


Method Summary
 java.lang.String getName()
          Returns the name of the Course (CMP field).
 Teacher getTeacher()
          Returns the Teacher teaching this Course (CMR field).
 
Methods inherited from interface javax.ejb.EJBLocalObject
getEJBLocalHome, getPrimaryKey, isIdentical, remove
 

Method Detail

getName

public java.lang.String getName()
Returns the name of the Course (CMP field). This is also the primary key as defined in the deployment descriptor.

getTeacher

public Teacher getTeacher()
Returns the Teacher teaching this Course (CMR field).