title: @PreUpdate and @Prepersist in hibernate/JPA (using session)
body: <p>I've hit a blocker adding a fix to an existing project.the main problem is that i'll like to use <code>@Prepersist</code> and <code>@PreUpdate</code> in the <code>POJO</code> to take care of <code>LastModified</code> field (insert and update) using hibernate implementation of JPA with session.</p>
  
  <p><em><strong>Reason ?</em></strong>:
  That change is required because there is a need to use <code>liquibase 1.9.5</code> and i know (since i've faced this before) that liquibase translate timestamp fied to datetime with default current_timestamp, and that is too bad for mysql database.</p>
  
  <p>So i needed a way to have this set in code rather than in database so i could safely change timestamp field to datetime.then liquibase is happy, i'm happy.</p>
  
  <p>Now it seems that those interpreters are not been executed, with little search i found out that it's suitable using <code>entityManager</code>.That is currently out of question.So i'll like to know if is there a <strong>SIMPLE</strong> way around my problem, meaning having <code>@Prepersist</code> or <code>@PreUpdate</code> or even other workaround to set the <code>lastModified</code> field still using session</p>