Hi

I'm using weblogic 8.1 with MS SQL database

I have a CMP entity bean with a primary key that is IDENTITY ON, so
auto-incremented.

My problem is this, when I crete a new entity bean myBean, I do not set the Id,
it is generated at the insert by the database, it save the data correctly in
the database but when I return the myBean.getId() it is not the same value as
the one in the database.

In the database i have 12, but the value return by myBean.getId() is 11.


Is there another properties I have to set up so it returns the value inserted
and not the value before ?


Thanks