If you're using a complex primary key (two or more fields), you need to specify the primary key class. If you're using a "simple" primary key (one field, primative type or String), you use the primary key field descriptor. Generally, you don't try to do both...
thanks for the reply
Sorted ... but the problem with CMP2.0 implementation in Jboss
is when there is something wrong with the creation of one table you get an error that all the rest of tables are
wrong as well .Something should be done to rectify this.
I had this error, and the problem was that the tag @ejb:pk class was missing, but not in the class where the JBoss log reported the error