Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Primery Key Class -Concept , please help  RSS feed

vivek bedekar
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!