It seems that cmp fields of type java.util.Date are always treated as dirty by the container if the value is not null. This leads to an ejbStore() call on the entities that have date fields even if they were not modified at all.
I looked at the source code (JDBCTypeFactory) and it seems that all fields of a type other than the immutable datatypes and a few collections are treated as dirty if they are not null.
Is this a bug in JBoss or am I missing something ? Pls let me know how I can avoid the extra unnecessary updates on the date fields of the entities.
Thanks in advance.