• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

[1.3] findByPrimaryKey Method of entity beans

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

i'm a bit confused over some descriptions given in some questions regarding the return type of the findByPrimaryKey method....

some says that it should be the local interface of the entity bean and some says that it should be the same as the primary key type...

but what i think is it should be the type of the local component interface if this is a local entity bean or the type of the remote component interface if the entity bean is a remote type...

please let me know what is correct... thanks
 
Charith Fernando
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

i made a conclusion after referring some books... the return type of the findByPrimaryKey should be the component interface of the bean. and multiple finder methods should return a collection of them...

please add some description into this if any one of you have any more....
 
Tell me how it all turns out. Here is a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic