#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
@@ -63,7 +63,7 @@ public class TestPersistenceContext extends BaseTestCase {
Customer customer = Ebean.find(Customer.class)
.setUseCache(false)
.setId(id)
.findUnique();
.findOne();
System.gc();
Order order2 = Ebean.find(Order.class, orderId);