本文整理汇总了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());
}
}
示例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());
}
}
示例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());
}
}
示例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);
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}