Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization 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
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

simple question

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do we need to have ejb-ql in deployment descriptor for findByPrimaryKey method in entitybean home interface? is it implicit to the container?
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Refer to 10.7.3 in the specs
"Every finder method except ejbFindByPrimaryKey(key) is specified in the query deployment descriptor element for the entity."

The findByPrimaryKey method of a cmp entity
bean is fully implemented by the container.
However, ejbql is specified for the other (optional)
find methods declared in the home interface. Also
there are no matching ejbFind methods defined in the
cmp entity bean class for any of the find methods.

A bmp entity bean however would have to provide
data access code using jdbc and pass sql queries in the
ejbFindByPrimaryKey (or any other ejbFind) method
implementations in the bean class.You dont have to
study bmp entity beans for the exam.

Malini
 
gopi chillakuru
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Malini for the response
 
mooooooo ..... tiny ad ....
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic