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
Post a Comment