This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
jQuery in Action, 2nd edition
 
subject: where and when is the primary key set