#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
@@ -27,7 +27,7 @@ public class TestLazyLoadEmptyOneToMany extends BaseTestCase {
.select("id")
.fetch("contacts", "id")
.where().idEq(c.getId())
.findUnique();
.findOne();
List<Contact> contacts = c1.getContacts();
int sz = contacts.size();