Some fixes for delete and update statements
This commit is contained in:
parent
fe4f98186a
commit
c41c6aaf7d
|
@ -77,7 +77,7 @@ public class StandardSqmDeleteTranslator
|
|||
assert entityDescriptor != null;
|
||||
|
||||
try {
|
||||
final NavigablePath rootPath = new NavigablePath( entityName );
|
||||
final NavigablePath rootPath = statement.getTarget().getNavigablePath();
|
||||
final TableGroup rootTableGroup = entityDescriptor.createRootTableGroup(
|
||||
rootPath,
|
||||
null,
|
||||
|
|
|
@ -91,7 +91,7 @@ public class StandardSqmUpdateTranslator
|
|||
);
|
||||
|
||||
try {
|
||||
final NavigablePath rootPath = new NavigablePath( entityName );
|
||||
final NavigablePath rootPath = sqmStatement.getTarget().getNavigablePath();
|
||||
final TableGroup rootTableGroup = entityDescriptor.createRootTableGroup(
|
||||
rootPath,
|
||||
null,
|
||||
|
|
|
@ -49,7 +49,7 @@ public class StandardSqlAstDeleteTranslator extends AbstractSqlAstTranslator imp
|
|||
|
||||
@Override
|
||||
public Set<String> getAffectedTableNames() {
|
||||
return getAffectedTableNames();
|
||||
return StandardSqlAstDeleteTranslator.this.getAffectedTableNames();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue