I'm following the Spring-MVC book project of House Do Code, using the latest version of Hibernate, 4.0.3.
But at a time, when the book indicated the creation of a quoted query through the following code:
// manager é um objeto da classe javax.persistence.EntityManager
manager.createQuery("minha query", MinhaEntidade.class);
I noticed that my object EntityManager
would only respond to a method called createQuery
, where the only accepted parameter is String
, not another class as the second parameter.
However, can anyone tell me if this method is no longer used, is it my mistake or what might be different from the book project?