I wrote a Custom Listener. But when i tries to set it in Hibernate Configuration as in
Configuration configuration=new Configuration().setListener("save-Update",XYZClass);
It states that there is no function with the name setListener. Help me out what am i doing wrong. My Hibernate Version id 4.02