example.cmp.relations.one2one
Class CourseBean

example.cmp.relations.one2one.CourseBean

public abstract class CourseBean

Implementation class for the Course bean.


Constructor Summary
CourseBean()
           
 
Method Summary
abstract  java.lang.String getName()
          Returns the name of the course (CMP field).
abstract  Teacher getTeacher()
          Returns the Teacher who is teaching this Course (CMR field).
 

Constructor Detail

CourseBean

public CourseBean()
Method Detail

getName

public abstract java.lang.String getName()
Returns the name of the course (CMP field). This method will be implemented by Resin-CMP. It is also the primary key as defined in the deployment descriptor.

getTeacher

public abstract Teacher getTeacher()
Returns the Teacher who is teaching this Course (CMR field). Resin-CMP will implement this method.