Adopt to API changes in Spring Data Relational.

Closes #661
This commit is contained in:
Mark Paluch
2021-10-04 11:22:20 +02:00
parent 8705171763
commit 245ad697c7

View File

@@ -161,7 +161,7 @@ public class QueryMapper {
Column column = (Column) expression;
Field field = createPropertyField(entity, column.getName());
Table table = column.getTable();
TableLike table = column.getTable();
Column columnFromTable = table.column(field.getMappedColumnName());
return column instanceof Aliased ? columnFromTable.as(((Aliased) column).getAlias()) : columnFromTable;