The EJB is mapped to a table which primary key is auto incremented.
In my create() method I have to pass a PrimaryKey as a first parameter. I don't want to do that because my PK is Autoincrement and I don't know the value of the key on the last record.
If I write my version of the create() method( and the corresponding ejbCreate() and ejbPostCreate() methods), with parameters, which doesn't include the PK(include only other non-keys columns), the problem is not solved.
Container automatic make a Insert statement with first parameter null and throws DuplicateKeyException on the second Insert.
I work with Jbuilder5 and BorlandAppServer4.5