0
我試圖在Play Framework 1.2.5上運行JPA Query
未成功。如何在Play Framework中運行JPA查詢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
我必須做的?