No effective change - update to using "Database" and DB

This commit is contained in:
rob bygrave
2019-03-12 14:29:28 +13:00
parent 119049b696
commit bfeb0cd667
2 changed files with 4 additions and 4 deletions
@@ -24,7 +24,7 @@ public class DtoQueryFromOrmTest extends BaseTestCase {
@AfterClass
public static void reportStats() {
BasicMetricVisitor basic = Ebean.getDefaultServer().getMetaInfoManager().visitBasic();
BasicMetricVisitor basic = DB.getDefault().getMetaInfoManager().visitBasic();
for (MetaQueryMetric metric : basic.getDtoQueryMetrics()) {
System.out.println(metric);
}
@@ -27,7 +27,7 @@ public class TestEnumValueAnnotation extends BaseTestCase {
DB.save(b);
SqlRow sqlRow = DB.createSqlQuery("select * from e_basic where id = :id")
SqlRow sqlRow = DB.sqlQuery("select * from e_basic where id = :id")
.setParameter("id", b.getId())
.findOne();
@@ -54,7 +54,7 @@ public class TestEnumValueAnnotation extends BaseTestCase {
DB.save(b);
SqlQuery q = DB.createSqlQuery("select * from e_basic_enum_id where status = :status");
SqlQuery q = DB.sqlQuery("select * from e_basic_enum_id where status = :status");
q.setParameter("status", b.getStatus());
SqlRow sqlRow = q.findOne();
@@ -80,7 +80,7 @@ public class TestEnumValueAnnotation extends BaseTestCase {
DB.save(b);
SqlQuery q = DB.createSqlQuery("select * from e_basic_eni where id = :id");
SqlQuery q = DB.sqlQuery("select * from e_basic_eni where id = :id");
q.setParameter("id", b.getId());
Optional<SqlRow> sqlRow = q.findOneOrEmpty();