File tree 1 file changed +9
-3
lines changed
hibernate-core/src/main/java/org/hibernate/boot/model/internal
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -743,9 +743,10 @@ private static void bindImplicitColumns(
743
743
PersistentClass referencedEntity ,
744
744
AnnotatedJoinColumns joinColumns ,
745
745
SimpleValue value ) {
746
- final List <Column > idColumns = referencedEntity instanceof JoinedSubclass
747
- ? referencedEntity .getKey ().getColumns ()
748
- : referencedEntity .getIdentifier ().getColumns ();
746
+ final KeyValue keyValue = referencedEntity instanceof JoinedSubclass
747
+ ? referencedEntity .getKey ()
748
+ : referencedEntity .getIdentifier ();
749
+ final List <Column > idColumns = keyValue .getColumns ();
749
750
for ( int i = 0 ; i < idColumns .size (); i ++ ) {
750
751
final Column column = idColumns .get (i );
751
752
final AnnotatedJoinColumn firstColumn = joinColumns .getJoinColumns ().get (0 );
@@ -767,6 +768,11 @@ private static void bindImplicitColumns(
767
768
}
768
769
}
769
770
}
771
+ if ( keyValue instanceof Component
772
+ && ( (Component ) keyValue ).isSorted ()
773
+ && value instanceof DependantValue ) {
774
+ ( (DependantValue ) value ).setSorted ( true );
775
+ }
770
776
}
771
777
772
778
private static void bindUnownedAssociation (
You can’t perform that action at this time.
0 commit comments