Skip to main content

Detecting changed columns before updating EJB entity

Hi, We work on a *Web/Enterprise Application* using *EJB* in *Glassfish V3* and *PostgreSQL 8.4*. Is there any mechanism that allows me to detect which field was changed (while performing updates) without using dirty flags or re-reading the same record(s) before updating it ? Why: For audit purpose/logging. Any recipes or ideas ? ...

Community: