This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Primary Key Class - error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "Primary Key Class - error" Watch "Primary Key Class - error" New topic
Author

Primary Key Class - error

vivek bedekar
Greenhorn

Joined: Jun 19, 2001
Posts: 23
i am having only one field as a primary key in my db table.I am using the class for that , so while deploying in primary key class field i am giving that classname as PRODUCT.ProductPK .
In my client code , i am finding by "name" using finder method which works fine . But with findbyprimarykey(ProductPK pk) method which has been defined in home. it gives an exception -- ERROR in database SELECT for find: java.lang.ClassCastException: PRODUCT.ProductPK --- . I am working on J2SDKEE1.2.1 ? So how to tackle this?

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Primary Key Class - error
 
Similar Threads
BMP
Automatic Primary Key Generation
No Database interaction from a Entity CMP Bean
Can a CMR field be part of a compound primary key
Primery Key Class -Concept , please help