• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[1.3] findByPrimaryKey Method of entity beans

 
Charith Fernando
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • 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
  • 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....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic