• Post Reply Bookmark Topic Watch Topic
  • New Topic

Finder methods for CMP beans  RSS feed

 
Ravi Singh
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When my entity bean has a CMP finder method, do I need to provide an implementation of the finder method using the EJB Query Language or does the container implement all finder methods?

Are finder methods for all entity bean attributes generated automatically by the container?
 
Henrique Ordine
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Finder and select methods are declared abstract. You don't implement them, the container does.
All you have to do is specify your query with EJB QL in the Deployment Descriptor.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!