All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.tool.ant.Hbm2DAOExporterTask Maven / Gradle / Ivy

There is a newer version: 5.6.15.Final
Show newest version
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() {
		Exporter result = new DAOExporter();
		result.getProperties().putAll(parent.getProperties());
		result.setMetadataDescriptor(parent.getMetadataDescriptor());
		result.setOutputDirectory(parent.getDestDir());
		return result;
	}

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy