fix signature of createQuery(CriteriaUpdate|CriteriaDelete)
This commit is contained in:
parent
ac845bca31
commit
0bf2365955
|
@ -456,13 +456,13 @@ public class SessionDelegatorBaseImpl implements SessionImplementor {
|
|||
return queryDelegate().createQuery( criteriaQuery );
|
||||
}
|
||||
|
||||
@Override @SuppressWarnings("rawtypes")
|
||||
public QueryImplementor createQuery(CriteriaUpdate updateQuery) {
|
||||
@Override
|
||||
public QueryImplementor<Void> createQuery(CriteriaUpdate updateQuery) {
|
||||
return queryDelegate().createQuery( updateQuery );
|
||||
}
|
||||
|
||||
@Override @SuppressWarnings("rawtypes")
|
||||
public QueryImplementor createQuery(CriteriaDelete deleteQuery) {
|
||||
@Override
|
||||
public QueryImplementor<Void> createQuery(CriteriaDelete deleteQuery) {
|
||||
return queryDelegate().createQuery( deleteQuery );
|
||||
}
|
||||
|
||||
|
|
|
@ -1006,12 +1006,12 @@ public abstract class AbstractSharedSessionContract implements SharedSessionCont
|
|||
}
|
||||
}
|
||||
|
||||
@Override @SuppressWarnings("rawtypes")
|
||||
public QueryImplementor createQuery(CriteriaUpdate criteriaUpdate) {
|
||||
@Override @SuppressWarnings("unchecked")
|
||||
public QueryImplementor<Void> createQuery(@SuppressWarnings("rawtypes") CriteriaUpdate criteriaUpdate) {
|
||||
checkOpen();
|
||||
try {
|
||||
return new QuerySqmImpl<>(
|
||||
(SqmUpdateStatement<?>) criteriaUpdate,
|
||||
(SqmUpdateStatement<Void>) criteriaUpdate,
|
||||
null,
|
||||
this
|
||||
);
|
||||
|
@ -1021,12 +1021,12 @@ public abstract class AbstractSharedSessionContract implements SharedSessionCont
|
|||
}
|
||||
}
|
||||
|
||||
@Override @SuppressWarnings("rawtypes")
|
||||
public QueryImplementor createQuery(CriteriaDelete criteriaDelete) {
|
||||
@Override @SuppressWarnings("unchecked")
|
||||
public QueryImplementor<Void> createQuery(@SuppressWarnings("rawtypes") CriteriaDelete criteriaDelete) {
|
||||
checkOpen();
|
||||
try {
|
||||
return new QuerySqmImpl<>(
|
||||
(SqmDeleteStatement<?>) criteriaDelete,
|
||||
(SqmDeleteStatement<Void>) criteriaDelete,
|
||||
null,
|
||||
this
|
||||
);
|
||||
|
|
|
@ -171,16 +171,14 @@ public interface QueryProducer {
|
|||
*
|
||||
* @see jakarta.persistence.EntityManager#createQuery(CriteriaUpdate)
|
||||
*/
|
||||
@SuppressWarnings("rawtypes")
|
||||
Query createQuery(CriteriaUpdate<?> updateQuery);
|
||||
Query<Void> createQuery(@SuppressWarnings("rawtypes") CriteriaUpdate updateQuery);
|
||||
|
||||
/**
|
||||
* Create a Query for the given JPA {@link CriteriaDelete}
|
||||
*
|
||||
* @see jakarta.persistence.EntityManager#createQuery(CriteriaDelete)
|
||||
*/
|
||||
@SuppressWarnings("rawtypes")
|
||||
Query createQuery(CriteriaDelete<?> deleteQuery);
|
||||
Query<Void> createQuery(@SuppressWarnings("rawtypes") CriteriaDelete deleteQuery);
|
||||
|
||||
/**
|
||||
* Create a {@link Query} instance for the named query.
|
||||
|
|
|
@ -68,9 +68,9 @@ public interface QueryProducerImplementor extends QueryProducer {
|
|||
@Override
|
||||
<R> QueryImplementor<R> createQuery(CriteriaQuery<R> criteriaQuery);
|
||||
|
||||
@Override @SuppressWarnings("rawtypes")
|
||||
QueryImplementor createQuery(CriteriaUpdate<?> updateQuery);
|
||||
@Override
|
||||
QueryImplementor<Void> createQuery(@SuppressWarnings("rawtypes") CriteriaUpdate updateQuery);
|
||||
|
||||
@Override @SuppressWarnings("rawtypes")
|
||||
QueryImplementor createQuery(CriteriaDelete<?> deleteQuery);
|
||||
@Override
|
||||
QueryImplementor<Void> createQuery(@SuppressWarnings("rawtypes") CriteriaDelete deleteQuery);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue