wood burning stoves 2.0*
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
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJBObject.getPrimaryKey() " Watch "EJBObject.getPrimaryKey() " New topic
Author

EJBObject.getPrimaryKey()

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: EJBObject.getPrimaryKey()