This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes How many find method in CMP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How many find method in CMP?" Watch "How many find method in CMP?" New topic

How many find method in CMP?

Ram Dhan Yadav K
Ranch Hand

Joined: Aug 13, 2001
Posts: 321
In a CMP, we are not required to define the findByPrimaryKey() mehtod. How about the other finder methods? How do we specify them in the CMP? Is there any declarative way of telling the container?
Ramdhan YK

Ram Dhan Yadav (SCJP, SCWCD, SCJA-I, IBM EC(483))
"We are what we repeatedly do. Excellence, then, is not an act, but a habit."
Lakshmi Kishore
Ranch Hand

Joined: Aug 04, 2001
Posts: 51
Declare the Finder methods in Home interface as you do for findByprimarykey and describe those methods in the finder list of the deployment descriptor. you don't need to implement user defined finder methods any where for CMPs.

Thanks & Regards<br />glkishore
Have you checked out Aspose?
subject: How many find method in CMP?
It's not a secret anymore!