HHH-8211 - Checkstyle and FindBugs fix-ups
This commit is contained in:
parent
ad103b1c30
commit
4ee980d9ff
|
@ -30,6 +30,7 @@ import javax.persistence.Id;
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
|
||||||
|
import org.hibernate.Filter;
|
||||||
import org.hibernate.Session;
|
import org.hibernate.Session;
|
||||||
import org.hibernate.SessionFactory;
|
import org.hibernate.SessionFactory;
|
||||||
import org.hibernate.cfg.AvailableSettings;
|
import org.hibernate.cfg.AvailableSettings;
|
||||||
|
@ -98,7 +99,7 @@ public class TupleSupportTest extends BaseUnitTestCase {
|
||||||
public void testImplicitTupleNotEquals() {
|
public void testImplicitTupleNotEquals() {
|
||||||
final String hql = "from TheEntity e where e.compositeValue <> :p1";
|
final String hql = "from TheEntity e where e.compositeValue <> :p1";
|
||||||
HQLQueryPlan queryPlan = ( (SessionFactoryImplementor) sessionFactory ).getQueryPlanCache()
|
HQLQueryPlan queryPlan = ( (SessionFactoryImplementor) sessionFactory ).getQueryPlanCache()
|
||||||
.getHQLQueryPlan( hql, false, Collections.emptyMap() );
|
.getHQLQueryPlan( hql, false, Collections.<String,Filter>emptyMap() );
|
||||||
|
|
||||||
assertEquals( 1, queryPlan.getSqlStrings().length );
|
assertEquals( 1, queryPlan.getSqlStrings().length );
|
||||||
System.out.println( " SQL : " + queryPlan.getSqlStrings()[0] );
|
System.out.println( " SQL : " + queryPlan.getSqlStrings()[0] );
|
||||||
|
@ -109,7 +110,7 @@ public class TupleSupportTest extends BaseUnitTestCase {
|
||||||
public void testImplicitTupleNotInList() {
|
public void testImplicitTupleNotInList() {
|
||||||
final String hql = "from TheEntity e where e.compositeValue not in (:p1,:p2)";
|
final String hql = "from TheEntity e where e.compositeValue not in (:p1,:p2)";
|
||||||
HQLQueryPlan queryPlan = ( (SessionFactoryImplementor) sessionFactory ).getQueryPlanCache()
|
HQLQueryPlan queryPlan = ( (SessionFactoryImplementor) sessionFactory ).getQueryPlanCache()
|
||||||
.getHQLQueryPlan( hql, false, Collections.emptyMap() );
|
.getHQLQueryPlan( hql, false, Collections.<String,Filter>emptyMap() );
|
||||||
|
|
||||||
assertEquals( 1, queryPlan.getSqlStrings().length );
|
assertEquals( 1, queryPlan.getSqlStrings().length );
|
||||||
System.out.println( " SQL : " + queryPlan.getSqlStrings()[0] );
|
System.out.println( " SQL : " + queryPlan.getSqlStrings()[0] );
|
||||||
|
|
Loading…
Reference in New Issue