Change Notes item #685731, was opened at 2003-02-13 05:11 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=381174&aid=685731&group_id=22866
Category: JBossCMP Group: v3.2 Status: Open Priority: 5 Submitted By: Adrian Brock (ejort) Assigned to: Nobody/Anonymous (nobody) Summary: Container Managed Audit Fields Initial Comment: Initial support for Container Managed Audit Fields Initially in 3.2 for evaluation purposes. Coding this in CMP2 is a pain and requires calculating the values on every set, monitoring whether the set actually changed the value. In jbosscmp-jdbc.xml add <audit> <created-by/> <created-time/> <updated-by/> <updated-time/> </audit> to the relevent entity. Four new fields are maintained by the CMP engine audit_created_by, audit_created_time, audit_updated_by, audit_updated_time For created_by and updated_by the caller principal must be in the entity context otherwise they are blank. You can choose which of the fields you want to use e.g. <audit> <updated-by/> <updated-time/> </audit> You can change the column names as follows <updated-by><column- name>change_user</column>name></updated-by> The field can also be a CMP field, by matching the field-name <updated-by><field-name>changedBy</field- name><updated-by> When the field is set programmatically this takes precedence over the container managed values. TODO 1) Decide and support relevent jdbc-type/sql-types. 2) Support date and time as separate fields for legacy data mappings 3) Add support for CMR tables. Regards, Adrian ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=381174&aid=685731&group_id=22866 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development