#246 CMP2 set always marks field as dirty

v3.2
open
nobody
JBossCMP (36)
5
2003-05-02
2003-05-02
No

Invoking a set accessor for a cmp-field will now always
result in that field being persisted. Previously fields
were only persisted if their value had changed (as
determined by equals()).

This ensures mutable values will be persisted if the
set accessor is called. Previously code such as
Hashtable temp = getStore();
temp.add(key, value);
setStore(temp);
silently failed to persist the new value.

This change may result in additional columns being
updated in scenarios such as when a bulk accessor
simply sets all members on a update operation,
resulting in a small performance degradation. This can
be avoided at the application level by explicitly
performing the equals() comparison (or better still,
not passing unchanged data into the EJB in the first
place).

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks