#996 Add findOne() and findOneOrEmpty()

This commit is contained in:
rob bygrave
2017-05-19 23:38:40 +12:00
parent c1bed9f578
commit db298a349e
20 changed files with 78 additions and 51 deletions
@@ -18,7 +18,7 @@ public class TestTransient extends BaseTestCase {
Ebean.save(cnew);
Integer custId = cnew.getId();
Customer c = Ebean.find(Customer.class).setAutoTune(false).setId(custId).findUnique();
Customer c = Ebean.find(Customer.class).setAutoTune(false).setId(custId).findOne();
Assert.assertNotNull(c);