squash 3 warnings by adding wildcard
This commit is contained in:
parent
61696189f5
commit
cb413fe134
|
@ -86,7 +86,7 @@ public class NamedCriteriaQueryMementoImpl extends AbstractNamedQueryMemento imp
|
|||
}
|
||||
|
||||
@Override
|
||||
public SqmStatement getSqmStatement() {
|
||||
public SqmStatement<?> getSqmStatement() {
|
||||
return sqmStatement;
|
||||
}
|
||||
|
||||
|
|
|
@ -145,7 +145,7 @@ public class NamedHqlQueryMementoImpl extends AbstractNamedQueryMemento implemen
|
|||
}
|
||||
|
||||
@Override
|
||||
public SqmStatement getSqmStatement() {
|
||||
public SqmStatement<?> getSqmStatement() {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ import org.hibernate.query.sqm.tree.SqmStatement;
|
|||
* @author Steve Ebersole
|
||||
*/
|
||||
public interface HqlInterpretation {
|
||||
SqmStatement getSqmStatement();
|
||||
SqmStatement<?> getSqmStatement();
|
||||
|
||||
ParameterMetadataImplementor getParameterMetadata();
|
||||
|
||||
|
|
|
@ -165,7 +165,7 @@ public class QuerySqmImpl<R>
|
|||
(s) -> queryEngine.getHqlTranslator().translate( hql, expectedResultType )
|
||||
);
|
||||
|
||||
this.sqm = hqlInterpretation.getSqmStatement();
|
||||
this.sqm = (SqmStatement<R>) hqlInterpretation.getSqmStatement();
|
||||
|
||||
this.parameterMetadata = hqlInterpretation.getParameterMetadata();
|
||||
this.domainParameterXref = hqlInterpretation.getDomainParameterXref();
|
||||
|
@ -184,7 +184,7 @@ public class QuerySqmImpl<R>
|
|||
NamedCriteriaQueryMementoImpl memento,
|
||||
Class<R> resultType,
|
||||
SharedSessionContractImplementor session) {
|
||||
this( memento.getSqmStatement(), resultType, session );
|
||||
this( (SqmStatement<R>) memento.getSqmStatement(), resultType, session );
|
||||
|
||||
applyOptions( memento );
|
||||
}
|
||||
|
@ -202,7 +202,7 @@ public class QuerySqmImpl<R>
|
|||
this.hql = hql;
|
||||
this.resultType = resultType;
|
||||
|
||||
this.sqm = hqlInterpretation.getSqmStatement();
|
||||
this.sqm = (SqmStatement<R>) hqlInterpretation.getSqmStatement();
|
||||
|
||||
this.parameterMetadata = hqlInterpretation.getParameterMetadata();
|
||||
this.domainParameterXref = hqlInterpretation.getDomainParameterXref();
|
||||
|
|
|
@ -28,7 +28,7 @@ public interface NamedSqmQueryMemento extends NamedQueryMemento {
|
|||
|
||||
String getHqlString();
|
||||
|
||||
SqmStatement getSqmStatement();
|
||||
SqmStatement<?> getSqmStatement();
|
||||
|
||||
Integer getFirstResult();
|
||||
|
||||
|
|
Loading…
Reference in New Issue