Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

getPrimaryKey - In two interfaces? Why?  RSS feed

 
Xiao Ping
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The getPrimaryKey() function exists in the EJBObject interface AND in the EntityContext interface.

Is this for any particular reason? Where (ie what functions in the Entity Bean lifecycle) would you not be able to call one and therefore need to call the other?

thanks

Xiao
 
Shibu Raj
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Xiao Ping,

I have read about this in Ed Romans EJB 3rd Edition book. Please refer to page number 138 - 139 in 3rd edition of the book. There he also explains about how it is being used in EJB Lifecycle as well. Hope this will clear out your confusion.

After going through this, if you are not clear, post your question will try to help you.

Thanks
Shibu
 
Xiao Ping
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

thanks for the reply, however I don't have ready access to that book so do youthink it would be possible to sum up the answer for me? As long as it's not too involved...

cheers

Xiao
[ May 23, 2005: Message edited by: Xiao Ping ]
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!