From e096ba468c627e19857d4c9a44d121a9bb786256 Mon Sep 17 00:00:00 2001 From: Davide D'Alto Date: Mon, 18 May 2020 12:51:37 +0100 Subject: [PATCH] HHH-14024 Fix NativeSQLQueryPlanEqualsTest compilation error --- .../hibernate/test/queryplan/NativeSQLQueryPlanEqualsTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hibernate-core/src/test/java/org/hibernate/test/queryplan/NativeSQLQueryPlanEqualsTest.java b/hibernate-core/src/test/java/org/hibernate/test/queryplan/NativeSQLQueryPlanEqualsTest.java index 26d4d0378d..d54029d4aa 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/queryplan/NativeSQLQueryPlanEqualsTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/queryplan/NativeSQLQueryPlanEqualsTest.java @@ -8,6 +8,7 @@ package org.hibernate.test.queryplan; import org.junit.Test; +import org.hibernate.engine.query.spi.HQLQueryPlan; import org.hibernate.engine.query.spi.NativeSQLQueryPlan; import org.hibernate.engine.query.spi.QueryPlanCache; import org.hibernate.engine.query.spi.sql.NativeSQLQueryReturn; @@ -29,7 +30,7 @@ public class NativeSQLQueryPlanEqualsTest extends BaseCoreFunctionalTestCase { @Test public void testNativeSQLQuerySpecEquals() { - QueryPlanCache cache = new QueryPlanCache( sessionFactory() ); + QueryPlanCache cache = new QueryPlanCache( sessionFactory(), HQLQueryPlan::new ); NativeSQLQuerySpecification firstSpec = createSpec(); NativeSQLQuerySpecification secondSpec = createSpec();