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

org.dbtools.gen.jpa.JPAObjectsBuilder Maven / Gradle / Ivy

There is a newer version: 11.0.0
Show newest version
package org.dbtools.gen.jpa;

import org.dbtools.gen.DBObjectsBuilder;
import org.dbtools.gen.DBObjectBuilder;
import org.dbtools.gen.GenConfig;

/**
 * User: jcampbell
 * Date: 2/12/14
 */
public class JPAObjectsBuilder extends DBObjectsBuilder {

    private JPADBObjectBuilder objectBuilder;

    public JPAObjectsBuilder(GenConfig genConfig) {
        super(genConfig);
        objectBuilder = new JPADBObjectBuilder(genConfig);
    }

    @Override
    public DBObjectBuilder getObjectBuilder() {
        return objectBuilder;
    }

    public void buildAll(String schemaFilename, String baseOutputDir, String basePackageName) {
        setXmlFilename(schemaFilename);
        setOutputBaseDir(baseOutputDir);
        setPackageBase(basePackageName);

        build();
        System.out.println("Generated [" + objectBuilder.getNumberFilesGenerated() + "] files.");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy