Forums Register Login

Primery Key Class -Concept , please help

+Pie Number of slices to send: Send
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 .

Hey! You're stepping on my hand! Help me tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 752 times.
Similar Threads
Can a CMR field be part of a compound primary key
BMP
Strange struts behavior
Primary Key Class - error
No Database interaction from a Entity CMP Bean
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 07:53:04.