2
I am following the project of the book Spring-MVC of Casa Do Código, using the latest version of Hibernate, a 4.0.3.
But in a moment, when the book indicated the creation of a typed 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
responded to the signature only of a method called createQuery
, where the only accepted parameter is a String
, and no longer a class as a second parameter.
However, someone can tell me if this method is no longer used, if it is my mistake or what may be different from the book’s design?
On the fly, thank you very much
– user5020