'doInHibernate(Session)' in 'Anonymous class derived from org.springframework.orm.hibernate5.HibernateCallback' clashes with 'doInHibernate(Session)' in 'org.springframework.orm.hibernate5.HibernateCallback'; overridden meth

public List getList(final String hql) {getHibernateTemplate().setCacheQueries(true);
return getHibernateTemplate().execute(new HibernateCallback() {
public Object doInHibernate(Session session) throws HibernateException, SQLException {Query q = null;
q = session.createQuery(hql);
return q.getResultList();
}}, true);}
error: ‘doInHibernate(Session)’ in ‘Anonymous class derived from org.springframework.orm.hibernate5.HibernateCallback’ clashes with ‘doInHibernate(Session)’ in ‘org.springframework.orm.hibernate5.HibernateCallback’; overridden method does not throw ‘java.sql.SQLException’

First, this is not a question, but just a blob of code without any context. You think anybody is willing to spend time to help you if not even you bother to spend time on formulating a proper question?
Second, I only see Spring in this code blob, so go to Spring forums and try your luck there.

Thinks for you!! I try