Hi all,
I am a novice in
EJB. I am using EJB-QL to retrieve records from the database.
eg.
* @ejb.finder signature="java.util.Collection findAccByParentId(
* java.lang.String PId)"
* query="SELECT OBJECT(acc)
* FROM Account As acc
* WHERE acc.AccParentId = ?1"
But it produces this exception.
Exception in
thread "main" javax.ejb.FinderException : Unknow query
What could be the problem here?
Please advise. Thank you.