2
I have this method:
public List<AvaCriterio> getList(){
List<AvaCriterio> lista = null;
try{
Session session = HibernateUtil.getSessionFactory().openSession();
session.beginTransaction();
lista = (List<AvaCriterio>)session.createQuery("from ava_criterio").list();
session.getTransaction().commit();
}catch(Exception e)
{System.out.println("Erro: "+e.getMessage());}
return lista;
}
Gives this error when executing:
Feb 07, 2017 5:16:46 pm org.hibernate.engine.jdbc.spi.Sqlexceptionhelper logExceptions WARN: SQL Error: 936, Sqlstate: 42000 Error: could not Extract Resultset
Where is the error?
Which database are you using? How is your Hibernate configuration file?
– Felipe Marinho
Oracle, Good. He’s saving and changing.
– adventistaam
I resolved with the answer of this question
– adventistaam