Package org.hibernate.tool.ant

Source Code of org.hibernate.tool.ant.Hbm2DAOExporterTask

package org.hibernate.tool.ant;

import org.hibernate.tool.hbm2x.DAOExporter;
import org.hibernate.tool.hbm2x.Exporter;

/**
* @author Dennis Byrne
*/
public class Hbm2DAOExporterTask extends Hbm2JavaExporterTask {

  public Hbm2DAOExporterTask(HibernateToolTask parent) {
    super(parent);
  }
 
  protected Exporter configureExporter(Exporter exp) {
    DAOExporter exporter = (DAOExporter)exp;
    super.configureExporter(exp);
    return exporter;
  }
 
  protected Exporter createExporter() {
    return new DAOExporter(parent.getConfiguration(), parent.getDestDir()) ;
  }

  public String getName() {
    return "hbm2dao (Generates a set of DAOs)";
  }

}
TOP

Related Classes of org.hibernate.tool.ant.Hbm2DAOExporterTask

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.