Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CMP Entity Identity and Primary Key

 
KasiMurugan Ramasamy
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

Anybody tell me the difference between Entity Object Identity and Primary key.

Previously i assumed Primary key and Entity identity are equal.


In SPec you can get the Entity Identity via getPrimaryKey(), EJBObject or EJBLocalObject.

That make me doubt on my assumbution.

Advance Thanks.

Regards
Kasimurugan R.
 
Miki Muzsi
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which page number in the spec are you refering to?

Could it be that what was ment is that you can get the primary key from:
- getPrimaryKey() (from EntityContext)
- getPrimaryKey() (EJBObject)
- getPrimaryKey() (EJBLocalObject)

?

Miki
 
KasiMurugan Ramasamy
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Spec page 172.

Thanks & Regards
Kasimurugan R
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic