@NamedQueries
注釈を使用して複数のクエリを実行したいのですが、次のエラーが発生しています:
1. The attribute value is undefined for the annotation typed NamedQueries
2.NamedQueries can not be resolved to a type
コードは次のとおりです。
@NamedQueries({
@NamedQuery(name="findAllBookItems",
query = "SELECT i FROM Book i where i.isbn > 1 "),
@NamedQuery(name="findAllCDItems",
query = "SELECT c FROM CD c where c.numberofcds >=0 ")
})
この注釈をどこかで定義する必要がありますか?