aspose 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
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
 
 
subject: where and when is the primary key set
 
Similar Threads
SQL statment to Delete a row
Primary Key Class in CMP & BMP
AAT generate Code - delete with no primary key
Urgent!! Help with primary key in BMP
Hibernate many-to-one composite key as foreign key