• Post Reply Bookmark Topic Watch Topic
  • New Topic

findByPrimaryKey

 
Anand Gondhiya
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am kind of new to EJBs.I saw some examples which confuses me:

1.Here is the signature of findByPrimaryKey from Home interface
public EmployeeBMP findByPrimaryKey(Short empNo) throws FinderException;

And here is the implementation of ejbFindByPrimaryKey from Bean class

public java.lang.Short ejbFindByPrimaryKey(java.lang.Short key){
}

I am new to EJBs but not new to Remote Procedure calling.

Thanks
-Anand.
 
Sivakumar Nachimuthu
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
findByPrimaryKey() method always returns only remote Interface.It wont return collection or anyother data type,as u r going to get only one row from the database.findByPrimaryKey is different from FindByPrimarykey().also u can't see the implemetation for findByPrimaryKey in the CMP Bean.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!