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