File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes where and when is the primary key set Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "where and when is the primary key set" Watch "where and when is the primary key set" New topic
Author

where and when is the primary key set

krishna prasad gunasekaran
Ranch Hand

Joined: Jul 25, 2006
Posts: 158
good day,

1. when and where is the primary key we get from getPrimaryKey() set?
2. class cast exception thrown in ejbLoad(), when i used my primary key class
instead of Integer. (Clause clause = (Clause) context.getPrimaryKey(),where
Clause is my Primary Key class.)

Note: I have never use my ejbCreate(), because i use existing records in db.


have a great day,
krishna prasad
 
wood burning stoves
 
subject: where and when is the primary key set