• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Primary Key Class - error

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?

 
reply
    Bookmark Topic Watch Topic
  • New Topic