This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
Hibernate many-to-one composite key as foreign key
SQL statment to Delete a row
Primary Key Class in CMP & BMP
Urgent!! Help with primary key in BMP
AAT generate Code - delete with no primary key