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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -