[SQL] Apply column name override in executeWithKey call

This commit is contained in:
BZsoldos 2018-03-26 16:11:16 +02:00
parent 2bf234caf7
commit 093d340bfb

View File

@ -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);