example.cmp.ejbql
Class HouseBean

example.cmp.ejbql.HouseBean

public abstract class HouseBean

Implementation class for the House bean. Each instance of StudentBean maps to a table entry of "one2many_houses", where student is defined.

HouseBean is abstract since it's taking advantage of container-managed persistence. Resin-CMP will create the implementation of the abstract methods.

HouseBean also takes advantage of the AbstractEntityBean implementation. AbstractEntityBean is just a stub EntityBean implementation with default methods to make life a little more sane for simple beans.


Constructor Summary
HouseBean()
           
 
Method Summary
abstract  java.lang.String getName()
          returns the name of the house (CMP field).
abstract  java.util.Collection getStudentList()
          returns a Collection of all Students living in this House (CMR field).
 

Constructor Detail

HouseBean

public HouseBean()
Method Detail

getName

public abstract java.lang.String getName()
returns the name of the house (CMP field). The name is the primary key as defined in the deployment descriptor.

getStudentList

public abstract java.util.Collection getStudentList()
returns a Collection of all Students living in this House (CMR field).