Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Composite primary key and auto generation  RSS feed

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

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
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!