mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#996 Add findOne() and findOneOrEmpty()
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user