hi all,
i am writing a CMP entity bean that uses a mssql table with a identity
(auto-increment) primary key. how do i tell jboss not to use the primary
key field on inserts? is it possible?
i tried to set the field as read-only but it didn't work. jboss didn't
let me have a pk field as
Hello Felipe,
Something like the following
in jbosscmp-jdbc.xml
entity
ejb-nameMyBean/ejb-name
cmp-field
field-nameid/field-name
auto-increment/
/cmp-field
...
!-- retrieves generated key of the record inserted into