当前位置: 首页>>代码示例>>Java>>正文


Java Configuration类代码示例

本文整理汇总了Java中org.jooq.util.jaxb.Configuration的典型用法代码示例。如果您正苦于以下问题:Java Configuration类的具体用法?Java Configuration怎么用?Java Configuration使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Configuration类属于org.jooq.util.jaxb包,在下文中一共展示了Configuration类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: generateCodeShouldSucceed

import org.jooq.util.jaxb.Configuration; //导入依赖的package包/类
@Test
public void generateCodeShouldSucceed() throws Exception {
    Configuration configuration = TestTool.createGeneratorConfig(
            FutureAsyncVertxGenerator.class.getName(),"future.async.vertx",  FutureAsyncGeneratorStrategy.class);
    try {
        GenerationTool.generate(configuration);
        Assert.assertTrue(true);
    } catch (Exception e) {
        e.printStackTrace();
        Assert.fail(e.getMessage());
    }
}
 
开发者ID:jklingsporn,项目名称:vertx-jooq-async,代码行数:13,代码来源:VertxGeneratorTest.java

示例2: generateCodeShouldSucceed

import org.jooq.util.jaxb.Configuration; //导入依赖的package包/类
@Test
public void generateCodeShouldSucceed() throws Exception {
    Configuration configuration = TestTool.createGeneratorConfig(
            RXAsyncVertxGenerator.class.getName(), "rx.async.vertx", RXAsyncGeneratorStrategy.class);
    try {
        GenerationTool.generate(configuration);
        Assert.assertTrue(true);
    } catch (Exception e) {
        e.printStackTrace();
        Assert.fail(e.getMessage());
    }
}
 
开发者ID:jklingsporn,项目名称:vertx-jooq-async,代码行数:13,代码来源:VertxGeneratorTest.java

示例3: generateCodeShouldSucceed

import org.jooq.util.jaxb.Configuration; //导入依赖的package包/类
@Test
public void generateCodeShouldSucceed() throws Exception {
    Configuration configuration = TestTool.createGeneratorConfig(
            ClassicAsyncVertxGenerator.class.getName(),"classic.async.vertx", ClassicAsyncGeneratorStrategy.class);
    try {
        GenerationTool.generate(configuration);
        Assert.assertTrue(true);
    } catch (Exception e) {
        e.printStackTrace();
        Assert.fail(e.getMessage());
    }
}
 
开发者ID:jklingsporn,项目名称:vertx-jooq-async,代码行数:13,代码来源:VertxGeneratorTest.java

示例4: generate

import org.jooq.util.jaxb.Configuration; //导入依赖的package包/类
public void generate() throws Exception {
    Configuration configuration = new Configuration()
        .withJdbc(new Jdbc()
            .withDriver(dialect.getDriverClassName())
            .withUrl(getUrl())
            .withUsername(user)
            .withPassword(password))
        .withGenerator(new Generator()
            .withName(CarbonJooqGenerator.class.getName())
            .withGenerate(new Generate()
                .withRelations(true)
                .withImmutablePojos(false) // if true, cannot use 'into()' method
                .withInterfaces(true)
                .withDaos(true))
            .withDatabase(new Database()
                .withName(getJooqDBClassName())
                .withIncludes(".*")
                .withExcludes("")
                .withInputSchema(db)
                .withForcedTypes(new ForcedType()
                    .withUserType(LocalDateTime.class.getName())
                    .withConverter(LocalDateTimeConverter.class.getName())
                    .withTypes("DATETIME"))
            )
            .withTarget(new Target()
                .withPackageName(packageName)
                .withDirectory(outputDir.getAbsolutePath())));
    GenerationTool.generate(configuration);
}
 
开发者ID:ShotaOd,项目名称:carbon,代码行数:30,代码来源:JooqCodeGenerator.java

示例5: generateCodeShouldSucceed

import org.jooq.util.jaxb.Configuration; //导入依赖的package包/类
@Test
public void generateCodeShouldSucceed() throws Exception {
    Configuration configuration = TestTool.createGeneratorConfig(
            ClassicVertxGenerator.class.getName(),"classic.asindb", ClassicAsInDBGeneratorStrategy.class);
    try {
        GenerationTool.generate(configuration);
        Assert.assertTrue(true);
    } catch (Exception e) {
        e.printStackTrace();
        Assert.fail(e.getMessage());
    }
}
 
开发者ID:jklingsporn,项目名称:vertx-jooq,代码行数:13,代码来源:VertxGeneratorTest.java

示例6: generateCodeShouldSucceed

import org.jooq.util.jaxb.Configuration; //导入依赖的package包/类
@Test
public void generateCodeShouldSucceed() throws Exception {
    Configuration configuration = TestTool.createGeneratorConfig(
            ClassicVertxGenerator.class.getName(),"classic.lowercase", ToLowerCaseGeneratorStrategy.class);
    try {
        GenerationTool.generate(configuration);
        Assert.assertTrue(true);
    } catch (Exception e) {
        e.printStackTrace();
        Assert.fail(e.getMessage());
    }
}
 
开发者ID:jklingsporn,项目名称:vertx-jooq,代码行数:13,代码来源:VertxGeneratorTest.java

示例7: generateCodeShouldSucceed

import org.jooq.util.jaxb.Configuration; //导入依赖的package包/类
@Test
public void generateCodeShouldSucceed() throws Exception {
    Configuration configuration = TestTool.createGeneratorConfig(
            FutureVertxGenerator.class.getName(),"future.vertx",  FutureGeneratorStrategy.class);
    try {
        GenerationTool.generate(configuration);
        Assert.assertTrue(true);
    } catch (Exception e) {
        e.printStackTrace();
        Assert.fail(e.getMessage());
    }
}
 
开发者ID:jklingsporn,项目名称:vertx-jooq,代码行数:13,代码来源:VertxGeneratorTest.java

示例8: generateCodeShouldSucceed

import org.jooq.util.jaxb.Configuration; //导入依赖的package包/类
@Test
public void generateCodeShouldSucceed() throws Exception {

    Configuration configuration = TestTool.createGeneratorConfig(
            FutureVertxGuiceGenerator.class.getName(),"future.guice",  FutureGeneratorStrategy.class);

    try {
        GenerationTool.generate(configuration);
        Assert.assertTrue(true);
    } catch (Exception e) {
        e.printStackTrace();
        Assert.fail(e.getMessage());
    }
}
 
开发者ID:jklingsporn,项目名称:vertx-jooq,代码行数:15,代码来源:VertxGuiceGeneratorTest.java

示例9: generateCodeShouldSucceed

import org.jooq.util.jaxb.Configuration; //导入依赖的package包/类
@Test
public void generateCodeShouldSucceed() throws Exception {
    Configuration configuration = TestTool.createGeneratorConfig(
            RXVertxGenerator.class.getName(),"rx.vertx",  RXGeneratorStrategy.class);
    try {
        GenerationTool.generate(configuration);
        Assert.assertTrue(true);
    } catch (Exception e) {
        e.printStackTrace();
        Assert.fail(e.getMessage());
    }
}
 
开发者ID:jklingsporn,项目名称:vertx-jooq,代码行数:13,代码来源:VertxGeneratorTest.java

示例10: generateCodeShouldSucceed

import org.jooq.util.jaxb.Configuration; //导入依赖的package包/类
@Test
public void generateCodeShouldSucceed() throws Exception {

    Configuration configuration = TestTool.createGeneratorConfig(
            RXVertxGuiceGenerator.class.getName(),"rx.guice",  RXGeneratorStrategy.class);

    try {
        GenerationTool.generate(configuration);
        Assert.assertTrue(true);
    } catch (Exception e) {
        e.printStackTrace();
        Assert.fail(e.getMessage());
    }
}
 
开发者ID:jklingsporn,项目名称:vertx-jooq,代码行数:15,代码来源:VertxGuiceGeneratorTest.java

示例11: generateCodeShouldSucceed

import org.jooq.util.jaxb.Configuration; //导入依赖的package包/类
@Test
public void generateCodeShouldSucceed() throws Exception {
    Configuration configuration = TestTool.createGeneratorConfig(
            ClassicVertxGenerator.class.getName(),"classic.vertx", ClassicGeneratorStrategy.class);
    try {
        GenerationTool.generate(configuration);
        Assert.assertTrue(true);
    } catch (Exception e) {
        e.printStackTrace();
        Assert.fail(e.getMessage());
    }
}
 
开发者ID:jklingsporn,项目名称:vertx-jooq,代码行数:13,代码来源:VertxGeneratorTest.java

示例12: generateCodeShouldSucceed

import org.jooq.util.jaxb.Configuration; //导入依赖的package包/类
@Test
public void generateCodeShouldSucceed() throws Exception {

    Configuration configuration = TestTool.createGeneratorConfig(
            ClassicVertxGuiceGenerator.class.getName(),"classic.guice",  ClassicGeneratorStrategy.class);

    try {
        GenerationTool.generate(configuration);
        Assert.assertTrue(true);
    } catch (Exception e) {
        e.printStackTrace();
        Assert.fail(e.getMessage());
    }
}
 
开发者ID:jklingsporn,项目名称:vertx-jooq,代码行数:15,代码来源:VertxGuiceGeneratorTest.java


注:本文中的org.jooq.util.jaxb.Configuration类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。