Package com.mysema.query

Source Code of com.mysema.query.Export

package com.mysema.query;

import java.io.File;
import java.sql.Connection;
import java.sql.DriverManager;

import com.mysema.query.sql.codegen.MetaDataExporter;


public class Export {
   
    public static void main(String[] args) throws Exception {
        Class.forName("com.mysql.jdbc.Driver");
        String url = "jdbc:mysql://localhost:3306/querydsl";
        Connection conn = DriverManager.getConnection(url, "querydsl", "querydsl");
       
        MetaDataExporter exporter = new MetaDataExporter();
        exporter.setNamePrefix("S");
        exporter.setPackageName("com.mysema.query.jpa.domain.sql");
        exporter.setTargetFolder(new File("../querydsl-jpa/src/test/java"));
//        exporter.setLowerCase(true);
        exporter.export(conn.getMetaData());
       
        conn.close();
    }

}
TOP

Related Classes of com.mysema.query.Export

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.