If Hibernate provides a configurable audit log function, that would be very nice. Think if we can do this:
In Hibernate.properties:
hibernate.audit_log=true
In Entity definition:
@column(audit="true")
public String name;
Then Hibernate will log the changes for the specified columns.
Thursday, July 22, 2010
Tuesday, April 13, 2010
Sugar custom logic hook
Hooks for modules
Define hooks in custom/modules/<module_name>/logic_hooks.php
Event type
before_save
after_save
before_restore
after_restore
process_record ------ when loads a row of data into instance of a bean
before_retrieve ------ fetches a single row of data given the primary key
after_retrieve
Generic Hooks
Generic hooks should be defined in custom/modules/logic_hooks.php
Event Type
after_ui_frame
after_ui_footer
Subscribe to:
Posts (Atom)