• Post Reply Bookmark Topic Watch Topic
  • New Topic

Composite primary key and auto generation

 
dimple sharma
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


If in CMP bean we have composite primary key i.e there are two cmp field as primary key (PK class) then is it possible that one of it will auto generated.

I am using jbuilder as IDE and web logic as server 6.1 SP5, when i m compiling project and when it is running EJB it is giving me error :

when Automatic Key Generation is enabled, the Primary Key class must be java.lang.Integer or java.lang.Long.

Is any body hv solution ?

thanks in advance,

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