mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1955 - mapToScalar - Add SqlQuery.mapToScalar( <class> ).findOne() / findList() ... to deprecate findSingleAttribute()
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user