#1955 - mapToScalar - Add SqlQuery.mapToScalar( <class> ).findOne() / findList() ... to deprecate findSingleAttribute()

This commit is contained in:
rob bygrave
2020-02-22 10:09:44 +13:00
parent 907d36123d
commit 92995b807e
6 changed files with 116 additions and 38 deletions
@@ -27,7 +27,8 @@ public class TestSqlUpdateExceptions extends BaseTestCase {
UUID foundId = DB.sqlQuery("select id from uuone where id = ?")
.setParameters(id)
.findSingleAttribute(UUID.class);
.mapToScalar(UUID.class)
.findOne();
assertThat(foundId).isEqualTo(id);
}