Customizing detection change

Posted by mada on Stack Overflow See other posts from Stack Overflow or by mada
Published on 2010-04-01T08:26:44Z Indexed on 2010/04/01 8:33 UTC
Read the original article Hit count: 294

Filed under:

Hi, I can now if a session contain any changes which must be synchronized with the database with session.isDirty()

But i have a simple field (modification date) that i would like to be ignore by it. Example: object Person( name,age,datemodification).

if i just modify the datemodification field i would like that session.isDirty() or othermethod like this to return false so at the end no sql update will occur.

Thanks in advance. Regards

© Stack Overflow or respective owner

Related posts about hibernate