squash some warnings
Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
parent
86ddd203a0
commit
eb74c7641c
|
@ -97,8 +97,7 @@ public final class ManagedTypeHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param entity
|
* @return true if and only if the entity implements {@link ManagedEntity}
|
||||||
* @return true if and only if the entity implements {@see ManagedEntity}
|
|
||||||
*/
|
*/
|
||||||
public static boolean isManagedEntity(final Object entity) {
|
public static boolean isManagedEntity(final Object entity) {
|
||||||
if ( entity instanceof PrimeAmongSecondarySupertypes ) {
|
if ( entity instanceof PrimeAmongSecondarySupertypes ) {
|
||||||
|
@ -109,8 +108,7 @@ public final class ManagedTypeHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param entity
|
* @return true if and only if the entity implements {@link HibernateProxy}
|
||||||
* @return true if and only if the entity implements {@see HibernateProxy}
|
|
||||||
*/
|
*/
|
||||||
public static boolean isHibernateProxy(final Object entity) {
|
public static boolean isHibernateProxy(final Object entity) {
|
||||||
if ( entity instanceof PrimeAmongSecondarySupertypes ) {
|
if ( entity instanceof PrimeAmongSecondarySupertypes ) {
|
||||||
|
|
|
@ -7,11 +7,7 @@
|
||||||
package org.hibernate.engine.query.internal;
|
package org.hibernate.engine.query.internal;
|
||||||
|
|
||||||
import org.hibernate.engine.query.spi.NativeQueryInterpreter;
|
import org.hibernate.engine.query.spi.NativeQueryInterpreter;
|
||||||
import org.hibernate.engine.spi.SessionFactoryImplementor;
|
|
||||||
import org.hibernate.query.sql.internal.NativeSelectQueryPlanImpl;
|
|
||||||
import org.hibernate.query.sql.internal.ParameterParser;
|
import org.hibernate.query.sql.internal.ParameterParser;
|
||||||
import org.hibernate.query.sql.spi.NativeSelectQueryDefinition;
|
|
||||||
import org.hibernate.query.sql.spi.NativeSelectQueryPlan;
|
|
||||||
import org.hibernate.query.sql.spi.ParameterRecognizer;
|
import org.hibernate.query.sql.spi.ParameterRecognizer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -23,7 +19,7 @@ public class NativeQueryInterpreterStandardImpl implements NativeQueryInterprete
|
||||||
*/
|
*/
|
||||||
public static final NativeQueryInterpreterStandardImpl NATIVE_QUERY_INTERPRETER = new NativeQueryInterpreterStandardImpl( false );
|
public static final NativeQueryInterpreterStandardImpl NATIVE_QUERY_INTERPRETER = new NativeQueryInterpreterStandardImpl( false );
|
||||||
|
|
||||||
private boolean nativeJdbcParametersIgnored;
|
private final boolean nativeJdbcParametersIgnored;
|
||||||
|
|
||||||
public NativeQueryInterpreterStandardImpl(boolean nativeJdbcParametersIgnored) {
|
public NativeQueryInterpreterStandardImpl(boolean nativeJdbcParametersIgnored) {
|
||||||
this.nativeJdbcParametersIgnored = nativeJdbcParametersIgnored;
|
this.nativeJdbcParametersIgnored = nativeJdbcParametersIgnored;
|
||||||
|
@ -33,17 +29,4 @@ public class NativeQueryInterpreterStandardImpl implements NativeQueryInterprete
|
||||||
public void recognizeParameters(String nativeQuery, ParameterRecognizer recognizer) {
|
public void recognizeParameters(String nativeQuery, ParameterRecognizer recognizer) {
|
||||||
ParameterParser.parse( nativeQuery, recognizer, nativeJdbcParametersIgnored );
|
ParameterParser.parse( nativeQuery, recognizer, nativeJdbcParametersIgnored );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public <R> NativeSelectQueryPlan<R> createQueryPlan(
|
|
||||||
NativeSelectQueryDefinition<R> queryDefinition,
|
|
||||||
SessionFactoryImplementor sessionFactory) {
|
|
||||||
return new NativeSelectQueryPlanImpl<>(
|
|
||||||
queryDefinition.getSqlString(),
|
|
||||||
queryDefinition.getAffectedTableNames(),
|
|
||||||
queryDefinition.getQueryParameterOccurrences(),
|
|
||||||
queryDefinition.getResultSetMapping(),
|
|
||||||
sessionFactory
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue