java - EntityListeners not called -
i have class this:
@entity @customizer(value=usuariocustomizer.class) @indexes({ @index(name="idx_login_senha",columnnames={"usuario","senha"}) }) @entitylisteners({hashr.class}) public class usuario implements serializable{ private static final long serialversionuid = 1l; // fields
and here hashr
public class hashr { @prepersist @preupdate public void dohash(object o){ // print info } }
but happens method never called...any ideas? did forgot something?
this should called. enable logging on finest , see if errors logged.
ensure have recompiled/deployed code.
what environment running in? ensure list listener class in persistence.xml classes.
Comments
Post a Comment