• 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
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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 .
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!