users@glassfish.java.net

Detecting changed columns before updating EJB entity

From: Sven Hafner <sven.hafner_at_gmx.de>
Date: Wed, 03 Feb 2010 09:09:05 +0800

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 ?

Thanks
Sven