HHH-11176 - Fix CheckStyle errors

This commit is contained in:
Andrea Boriero 2017-08-08 17:04:30 +02:00
parent b8c6bc2204
commit ba6cc06810
2 changed files with 10 additions and 3 deletions

View File

@ -889,9 +889,10 @@ public abstract class AbstractSharedSessionContract implements SharedSessionCont
}
private void handleNativeQueryResult(NativeQueryImplementor query, Class resultClass) {
if (Tuple.class.equals(resultClass)) {
query.setResultTransformer(new NativeQueryTupleTransformer());
} else {
if ( Tuple.class.equals( resultClass ) ) {
query.setResultTransformer( new NativeQueryTupleTransformer() );
}
else {
query.addEntity( "alias1", resultClass.getName(), LockMode.READ );
}
}

View File

@ -1,3 +1,9 @@
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* 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.jpa.spi;
import java.util.ArrayList;