September 2002
Intermediate to advanced
608 pages
14h 20m
English
Entity beans are required to provide at least a findByPrimaryKey() method, and may include additional finder methods as well. If you are using bean-managed persistence, then it is the responsibility of the bean developer to code the implementation of these methods. Like the life-cycle methods, the implementation will be prefixed by ejb—so if our GameEntityBean used BMP, we would be responsible for implementing ejbFindByPrimaryKey() and ejbFindAll() methods for it.
With container-managed persistence, the container will generate these methods. We've already given the container enough information to generate the findByPrimaryKey() method. For any additional finder methods, we have to give the container ...
Read now
Unlock full access