mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 00:24:57 +00:00
HHH-14380 - Only reorder destination from elements from the same from clause
This commit is contained in:
parent
34bacba59e
commit
9c69ddc8f1
@ -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