This content has been marked as final.
Show 3 replies
-
1. Re: CMP Deployment Error
juhalindfors Jun 15, 2003 11:27 AM (in response to jacques_buitendag)remove <prim-key-class> declaration from your ejb-jar.xml
-
2. Re: CMP Deployment Error
jacques_buitendag Jun 17, 2003 3:29 AM (in response to jacques_buitendag)Hi Juha
I tried that method but then the problem was that the generated SQL gave errors.
But on the other side I found the problem.
my primary key getters and setters where still of type long and not of type java.lang.Long.
My question now is: how can you use primitive types as primary keys in CMP?
Kind Regards
Jacques Buitendag -
3. Re: CMP Deployment Error
juhalindfors Jun 17, 2003 9:08 AM (in response to jacques_buitendag)just declare the field as 'long' in your CMP implementation and mark it as your primary key field in ejb-jar.xml. Do not use primkey-class at all, it is only necessary for composite primary keys