Avoid selection of duplicate columns.

Closes #1865
This commit is contained in:
Jens Schauder
2024-08-29 11:02:13 +02:00
parent 07e13aa3a9
commit 9b0b91bfd0
2 changed files with 46 additions and 28 deletions

View File

@@ -514,7 +514,7 @@ class SqlGenerator {
Table table = getTable();
List<Expression> columnExpressions = new ArrayList<>();
Set<Expression> columnExpressions = new LinkedHashSet<>();
List<Join> joinTables = new ArrayList<>();
for (PersistentPropertyPath<RelationalPersistentProperty> path : mappingContext