Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • 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
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

ejbFind in entity beans  RSS feed

 
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 .
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!