#996 Add findOne() and findOneOrEmpty() - SqlQuery

This commit is contained in:
rob bygrave
2017-05-19 23:48:41 +12:00
parent db298a349e
commit 0c1a9786a3
9 changed files with 55 additions and 10 deletions
@@ -58,7 +58,7 @@ public class TestEncrypt extends BaseTestCase {
SqlQuery q = Ebean.createSqlQuery("select * from e_basicenc where id = :id");
q.setParameter("id", e.getId());
SqlRow row = q.findUnique();
SqlRow row = q.findOne();
row.getString("name");
row.get("description");