posted 20 years ago
Page 130 of the specification says: "Once the primary key for an entity bean has been set, the Bean Provider must not attempt to change it by use of set accessor methods on the primary key cmp-fields. The Bean Provider should therefore not expose the set accessor methods for the primary key cmp-fields in the component interface of the entity bean."
Page 134 completes saying that "If the Bean Provider attempts to reset a primary key value, the container must throw the java.lang.IllegalStateException."
Regards,
Stefan
SCJP 1.4, SCBCD 1.3<br />IBM 141, 484, 486