This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Primery Key Class -Concept , please help 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 "Primery Key Class -Concept , please help" Watch "Primery Key Class -Concept , please help" New topic
Author

Primery Key Class -Concept , please help

vivek bedekar
Greenhorn

Joined: Jun 19, 2001
Posts: 23
i am having only one field as a primary key in my database table.I am using the class ( --Classname ProductPK in package PRODUCT --)for that .So while deploying in primary key class field i am giving that classname as PRODUCT.ProductPK or should i give "java.lang.Object"?
In my client code , i am finding by "name" using finder method findbyName() 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 .

 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Primery Key Class -Concept , please help
 
It's not a secret anymore!