jboss - @PreUpdate never fired in Wildfly 8 / JPA 2.1 -


i experiencing strange effect, @preupdate hook never fires. code:

@prepersist @preupdate public void prepersist() {     if (getcreated() == null) {         setcreated(new date());         setcreatedby(loginholder.getuser());     }     setlastmodified(new date());     setmodifiedby(loginholder.getuser());  } 

although hibernate logs update (existing) entity, @prepersist fires on new items. have missed something?


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -