Move last query test and fix issue with parent table group access when parent is correlated

This commit is contained in:
Christian Beikov 2022-01-04 18:10:17 +01:00
parent 2666f3f6e0
commit 97dd838954
2 changed files with 2 additions and 2 deletions

View File

@ -1408,7 +1408,7 @@ public class ToOneAttributeMapping
creationContext
),
(np, tableExpression) -> {
if ( !canUseParentTableGroup ) {
if ( !canUseParentTableGroup || tableGroupProducer != ToOneAttributeMapping.this ) {
return false;
}
NavigablePath path = np.getParent();

View File

@ -4,7 +4,7 @@
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.query.hhh13670;
package org.hibernate.orm.test.query.hhh13670;
import org.hibernate.testing.TestForIssue;
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;