mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
#1114 - Deprecate findUnique() - please migrate to findOne()
This commit is contained in:
1 parent
8fbf0374dd
commit
2470486f20
17 files changed
+43
-37
No files matched your search
@@ -630,7 +630,7 @@ public final class DefaultPersister implements Persister {
|
||||
if (t.isLogSummary()) {
|
||||
t.logSummary("-- DeleteById of " + descriptor.getName() + " id[" + id + "] requires fetch of foreign key values");
|
||||
}
|
||||
EntityBean bean = (EntityBean) server.findUnique(q, t);
|
||||
EntityBean bean = (EntityBean) server.findOne(q, t);
|
||||
if (bean == null) {
|
||||
return 0;
|
||||
} else {
|
||||
|
||||
@@ -75,7 +75,7 @@ class DeleteUnloadedForeignKeys {
|
||||
if (t.isLogSummary()) {
|
||||
t.logSummary("-- Ebean fetching foreign key values for delete of " + descriptor.getName() + " id:" + id);
|
||||
}
|
||||
beanWithForeignKeys = (EntityBean) server.findUnique(q, t);
|
||||
beanWithForeignKeys = (EntityBean) server.findOne(q, t);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user