This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread 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 Head First Android this week in the Android 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: where and when is the primary key set
 
jQuery in Action, 3rd edition