mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-12 22:24:47 +00:00
HHH-14380 - Only reorder destination from elements from the same from clause
This commit is contained in:
parent
c1baa23734
commit
89f0000b62
@ -95,8 +95,12 @@ void moveFromElementToEnd(FromElement element) {
|
||||
fromElements.remove( element );
|
||||
fromElements.add( element );
|
||||
// We must move destinations which must come after the from element as well
|
||||
fromElements.removeAll( element.getDestinations() );
|
||||
fromElements.addAll( element.getDestinations() );
|
||||
for ( FromElement fromElement : element.getDestinations() ) {
|
||||
if ( this == fromElement.getFromClause() ) {
|
||||
fromElements.remove( fromElement );
|
||||
fromElements.add( fromElement );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void finishInit() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user