Originally posted by yamini nadella: it seems answer is false. why?
This question doesn't make a distinction between a CMP or BMP bean.
I presume this question relates to SCEA part I (310-051) not SCBCD (310-090); the former uses EJB 1.1, not EJB 2.0.
In EJB 2.0 I found the following section:
Chapter 14 EJB 1.1 Entity Bean Component Contract for Container-Managed Persistence ... 14.1.6 finder methods ... Note that the ejbFind<METHOD> names and parameter signatures of EJB 1.1 entity beans do not provide the container tools with sufficient information for automatically generating the implementation of the finder methods for methods other than ejbFindByPrimaryKey.
This leads me to believe that in EJB 1.1 finder methods are not generated. Just consult the appropriate specification to confirm.
Even with CMP 2.0, you must define EJBQL query for finders OTHER THAN findByPrimaryKey in the deploiment descriptor so the server can generate implementation.
posted 14 years ago
Originally posted by Akar Rafidj: Even with CMP 2.0, you must define EJBQL query for finders OTHER THAN findByPrimaryKey
Despite the presence of the EJB-QL, the container still is responsible for "generating the implementation" (implementing class) - there is no trace of an implementation of the finder method in the (abstract) CMP entity bean class.