我用的是jb9.我为实体bean编写的finder:findAllBooks函数的EJB-QL为什么错了?
我用的是jb9.我为实体bean编写的finder:findAllBooks函数的EJB-QL为什么错了?
SELECT OBJECT(a) FROM Book AS a WHERE isbn IS NOT NULL
"Books.jar": Query:
"Books.jar": EJB Name: Book
"Books.jar": Method Name: findAllBooks
"Books.jar": Parameter Types: ()
"Books.jar": SELECT OBJECT(a ) FROM Book AS a WHERE =>> isbn <<= IS NOT NULL
"Books.jar": Error encountered while compiling EJB QL IS [NOT] NULL,
"Books.jar": EJB QL compilation encountered error: [EJB:013080]
"Books.jar": Problem, the path expression/Identifier 'isbn' starts with an identifier: 'isbn'. The identifier 'isbn', which can be either a range variable identifier or a collection member identifier, is required to be declared in the FROM clause of its query or in the FROM clause of a parent query. 'isbn' is not defined in the FROM clause of either its query or in any parent query.
"Books.jar": Action, rewrite the query paying attention to the usage of 'isbn'.