This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes EJBObject.getPrimaryKey() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJBObject.getPrimaryKey() " Watch "EJBObject.getPrimaryKey() " New topic


Srikanth Basa
Ranch Hand

Joined: Jun 06, 2005
Posts: 241
Given that this method is supposed to be called on an Entity Bean only, why didn't the EJB architecture team consider exposing sub-interfaces like EntityBeanEJBObject, SessionBeanEJBObject ? so that the getPrimaryKey() method can be called only from EntityBeanEJBObject and not from others (any thoughts) ?
Joseph Sweet
Ranch Hand

Joined: Jan 29, 2005
Posts: 327
Backward compatibility.

We must know, we will know. -- David Hilbert
I agree. Here's the link:
subject: EJBObject.getPrimaryKey()
It's not a secret anymore!