File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes cant get primary key value 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 "cant get primary key value" Watch "cant get primary key value" New topic

cant get primary key value

Giselle Dazzi
Ranch Hand

Joined: Apr 20, 2003
Posts: 168
Hi all,
In my ejb I have a method to get the primary key, but it always returns null, always. any ideas ? ANYTHING, Im getting desperate. here�s my method:

[ November 24, 2003: Message edited by: Giselle Dazzi ]

Giselle Dazzi<br />SCJP 1.4
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
Use the EntityContext method getPrimaryKey() instead.

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
I agree. Here's the link:
subject: cant get primary key value
It's not a secret anymore!