HHH-16274 Fix sorting of DependantValue's properties

This commit is contained in:
Marco Belladelli 2023-03-23 17:35:17 +01:00 committed by Christian Beikov
parent 77d9763192
commit edc60f1a7a
1 changed files with 10 additions and 1 deletions

View File

@ -631,7 +631,16 @@ public class TableBinder {
}
}
if ( value instanceof ToOne ) {
( (ToOne) value).setSorted( true );
( (ToOne) value ).setSorted( true );
}
else if ( value instanceof DependantValue ) {
( (DependantValue) value ).setSorted( true );
}
else {
throw new AssertionError(
"This should never happen, value can only be ToOne or DependantValue," +
"instead it's '" + value.getClass().getName() + "'"
);
}
}