Some fixes for delete and update statements

This commit is contained in:
Christian Beikov 2020-01-31 11:17:50 +01:00 committed by Steve Ebersole
parent fe4f98186a
commit c41c6aaf7d
3 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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,

View File

@ -49,7 +49,7 @@ public class StandardSqlAstDeleteTranslator extends AbstractSqlAstTranslator imp
@Override
public Set<String> getAffectedTableNames() {
return getAffectedTableNames();
return StandardSqlAstDeleteTranslator.this.getAffectedTableNames();
}
};
}