mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
#1167 - BUG: query.setId(...).delete() does not work
This commit is contained in:
1 parent
5869187368
commit
96a4b93c75
5 files changed
+25
-5
No files matched your search
@@ -564,7 +564,7 @@ class CQueryBuilder {
|
||||
appendWhere(hasWhere, sb);
|
||||
|
||||
BeanDescriptor<?> desc = request.getBeanDescriptor();
|
||||
String idSql = desc.getIdBinderIdSql();
|
||||
String idSql = desc.getIdBinderIdSql(query.getAlias());
|
||||
if (idSql.isEmpty()) {
|
||||
throw new IllegalStateException("Executing FindById query on entity bean " + desc.getName()
|
||||
+ " that doesn't have an @Id property??");
|
||||
|
||||
@@ -86,7 +86,7 @@ class CQueryBuilderRawSql {
|
||||
BeanDescriptor<?> descriptor = request.getBeanDescriptor();
|
||||
//FIXME: I think this is broken... needs to be logical
|
||||
// and then parsed for RawSqlSelect...
|
||||
dynamicWhere = descriptor.getIdBinderIdSql();
|
||||
dynamicWhere = descriptor.getIdBinderIdSql(null);
|
||||
}
|
||||
|
||||
String dbWhere = predicates.getDbWhere();
|
||||
|
||||
Reference in new issue
Block a user