• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

ejbFind in entity beans

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As kathy said, exam objectives are only regarding CMP . No BMP . There is a Q in ejbcertificate.com :
Q:Identify all correct requirements for an entity bean class?
1. The ejbPostCreate() must not be declared as final and static but must return the primary key.
2. Business methods defined in the entity bean class can start with the prefix 'ejb'.
3. The Container must specify a primary key class in the deployment descriptor.
4. The ejbFind method must have an ejbFind prefix, declared public and must throw FinderException.
5. The Container must define a query for each finder or select method except findByPrimaryKey(key).
Ans(according to author is 4) ...
(But since the exam doesnt contain BMP,) entity bean class(a CMP one) will not have to define(or even declare) ejbFind methods (Spec. page 191).
Or is there anything like bean class can optionally declare ejbFinds ? i do not think so .
 
Been there. Done that. Went back for more. But this time, I took this tiny ad with me:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic