Package com.mysema.query.jpa.codegen

Examples of com.mysema.query.jpa.codegen.HibernateDomainExporter


    public void Execute() throws IOException {
        File gen = new File("target/" + getClass().getSimpleName());
        FileUtils.delete(gen);
        Configuration config = new Configuration();
        config.addFile(new File("src/test/resources/com/mysema/query/jpa/domain17/domain.hbm.xml"));
        HibernateDomainExporter exporter = new HibernateDomainExporter("Q", gen, config);
        exporter.execute();

        CompileUtils.compile(gen.getAbsolutePath());
    }
View Full Code Here


        for (String res : Arrays.asList("Customer.hbm.xml",
                "CustomerContact.hbm.xml",
                "CustomerHistory.hbm.xml")) {
            config.addFile(new File("src/test/resources/com/mysema/query/jpa/domain5/" + res));
        }
        HibernateDomainExporter exporter = new HibernateDomainExporter("Q", gen, config);
        exporter.execute();

        File targetFile = new File(gen, "com/mysema/query/jpa/domain5/QCustomer.java");
        assertContains(targetFile, "SetPath<CustomerContact, QCustomerContact>",
                                   "SetPath<CustomerHistory, QCustomerHistory>");
View Full Code Here

    public void Execute() throws IOException {
        File gen = new File("target/" + getClass().getSimpleName());
        FileUtils.delete(gen);
        Configuration config = new Configuration();
        config.addFile(new File("src/test/resources/com/mysema/query/jpa/domain14/domain.hbm.xml"));
        HibernateDomainExporter exporter = new HibernateDomainExporter("Q", gen, config);
        exporter.execute();       
       
        assertTrue(new File(gen, "com/mysema/query/jpa/domain14/QSiCZuCapiRechtMapping.java").exists());
        assertTrue(new File(gen, "com/mysema/query/jpa/domain14/QMappingID.java").exists());

        CompileUtils.compile(gen.getAbsolutePath());
View Full Code Here

TOP

Related Classes of com.mysema.query.jpa.codegen.HibernateDomainExporter

Copyright © 2018 www.massapicom. 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.