Skip to content

Commit

Permalink
HHH-16274 Fix sorting of DependantValue's properties
Browse files Browse the repository at this point in the history
  • Loading branch information
mbladel authored and beikov committed Mar 24, 2023
1 parent 0a8cf3f commit 943c221
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,16 @@ private static void bindPrimaryKeyReference(
}
}
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() + "'"
);
}
}

Expand Down

0 comments on commit 943c221

Please sign in to comment.