• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

CMP Entity Identity and Primary Key

 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Spec page 172.

Thanks & Regards
Kasimurugan R
 
reply
    Bookmark Topic Watch Topic
  • New Topic