mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-30 21:08:30 +08:00
[SQL] Apply column name override in executeWithKey call
This commit is contained in:
parent
2bf234caf7
commit
093d340bfb
@ -325,6 +325,7 @@ public abstract class AbstractSQLInsertClause<C extends AbstractSQLInsertClause<
|
||||
for (int i = 0; i < target.length; i++) {
|
||||
Path<?> path = entity.getPrimaryKey().getLocalColumns().get(i);
|
||||
String column = ColumnMetadata.getName(path);
|
||||
column = configuration.getColumnOverride(entity.getSchemaAndTable(), column);
|
||||
target[i] = column;
|
||||
}
|
||||
stmt = connection().prepareStatement(queryString, target);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user