use of com.example.helloworld.db.jdbi.WorldRepository in project FrameworkBenchmarks by TechEmpower.
the class HelloJDBIService method run.
@Override
public void run(HelloWorldConfiguration config, Environment environment) {
final JdbiFactory factory = new JdbiFactory();
final Jdbi jdbi = factory.build(environment, config.getDatabaseConfiguration(), "RDBMS");
// Test type 1: JSON serialization and Test type 6: Plaintext are tested against HelloWorldService class
// Test types 2, 3 & 5: Single database query, Multiple database queries & Database updates
environment.jersey().register(new WorldResource(new WorldRepository(jdbi)));
// Test type 4: Fortunes
environment.jersey().register(new FortuneResource(new FortuneRepository(jdbi)));
}
Aggregations