Skip to content

Commit d499d55

Browse files
committed
Move to TreeMap to ensure ordering
1 parent ff78162 commit d499d55

File tree

1 file changed

+2
-3
lines changed
  • spring-data-relational/src/main/java/org/springframework/data/relational/core/mapping

1 file changed

+2
-3
lines changed

spring-data-relational/src/main/java/org/springframework/data/relational/core/mapping/AggregatePath.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ class ColumnInfos {
500500

501501
this.basePath = basePath;
502502
this.columnInfos = columnInfos;
503-
this.longColumnInfos = new HashMap<>();
503+
this.longColumnInfos = new TreeMap<>();
504504
columnInfos.forEach((ap, ci) -> longColumnInfos.put(fullPath(ap), ci));
505505
this.columnCache = new HashMap<>(columnInfos.size(), 1f);
506506
}
@@ -553,8 +553,7 @@ public ColumnInfo any() {
553553
*/
554554
public List<Column> toColumnList(Table table) {
555555

556-
return columnCache.computeIfAbsent(table,
557-
t -> toColumnList((__,ci) -> t.column(ci.name)));
556+
return columnCache.computeIfAbsent(table, t -> toColumnList((__, ci) -> t.column(ci.name)));
558557
}
559558

560559
/**

0 commit comments

Comments
 (0)