我试图JPA Query
在 Play Framework 1.2.5 上运行失败。
我试过这样:
Query query = JPA.em().createQuery("select * from Book");
List<Book> articles = query.getResultList();
render(articles);
但我得到错误:
The file /app/controllers/Application.java could not be compiled. Error raised is : Query cannot be resolved to a type
我该怎么办?