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;
|
assert entityDescriptor != null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final NavigablePath rootPath = new NavigablePath( entityName );
|
final NavigablePath rootPath = statement.getTarget().getNavigablePath();
|
||||||
final TableGroup rootTableGroup = entityDescriptor.createRootTableGroup(
|
final TableGroup rootTableGroup = entityDescriptor.createRootTableGroup(
|
||||||
rootPath,
|
rootPath,
|
||||||
null,
|
null,
|
||||||
|
|
|
@ -91,7 +91,7 @@ public class StandardSqmUpdateTranslator
|
||||||
);
|
);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final NavigablePath rootPath = new NavigablePath( entityName );
|
final NavigablePath rootPath = sqmStatement.getTarget().getNavigablePath();
|
||||||
final TableGroup rootTableGroup = entityDescriptor.createRootTableGroup(
|
final TableGroup rootTableGroup = entityDescriptor.createRootTableGroup(
|
||||||
rootPath,
|
rootPath,
|
||||||
null,
|
null,
|
||||||
|
|
|
@ -49,7 +49,7 @@ public class StandardSqlAstDeleteTranslator extends AbstractSqlAstTranslator imp
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Set<String> getAffectedTableNames() {
|
public Set<String> getAffectedTableNames() {
|
||||||
return getAffectedTableNames();
|
return StandardSqlAstDeleteTranslator.this.getAffectedTableNames();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue