I am having trouble dealing with primary key that is auto-incremented in the database. I am not sure how to declare that field in EntityBean and how to properly call ejbCreate(). Can someone shed some light on this topic?
I went through the postings here on this item. My questions are is it not possible to let the EntityBean|Container know that database is responsible for auto-incrementing a particular field? Is it not supported in J2EE?
It is not supported in J2EE (the spec sucks) but can be done in JBoss, search the CMP forum for 'auto-increment', it has been covered many times over.