I just downloaded abator and denegrated xml, dao, and
model codes. I can not figure out how to use query by
example style selection.

Here is one method in dao.

   /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table
carproject.car
     *
     * @abatorgenerated Wed Feb 22 03:05:24 EST 2006
     */
    public List selectByExample(CarExample example) {
        return selectByExample(example, null);
    }

one of the methods in CarExample

   /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table
carproject.car
     *
     * @abatorgenerated Wed Feb 22 03:05:24 EST 2006
     */
    public void setMileage_Indicator(int
mileage_Indicator) {
        this.mileage_Indicator = mileage_Indicator;
    }

Can someone give me some very brief code to select a car
with mileage less than 50,000 miles?

Appreciate your help,
Tony

Reply via email to