/** This method was created in VisualAge. */
  public void test() {
    // READ A GRASSHOPPER
    GrassHopper grassHopper = (GrassHopper) getSession().readObject(GrassHopper.class);

    // MODIFY THE GRASSHOPPER
    UnitOfWork uow = getSession().acquireUnitOfWork();
    GrassHopper tempGrassHopper = (GrassHopper) uow.registerObject(grassHopper);
    tempGrassHopper.setGh_maximumJump(new Integer(150));
    uow.commit();
  }
  /** This method was created in VisualAge. */
  protected void setup() {
    getAbstractSession().beginTransaction();

    // CREATE A GRASSHOPPER
    GrassHopper grassHopper = new GrassHopper();
    grassHopper.setIn_numberOfLegs(new Integer(6));
    grassHopper.setGh_maximumJump(new Integer(100));

    // ADD THE GRASSHOPPER TO THE DATABASE
    UnitOfWork uow = getSession().acquireUnitOfWork();
    uow.registerObject(grassHopper);
    uow.commit();
  }