1 Reply Latest reply on Apr 28, 2015 3:29 AM by omid pourhadi

    How to make a hibernate interceptor (session scoped) in Seam please??

    Fiax Lux Deschapelles La Rosa Newbie

      Develop a trigger in hibernate as follows:

      public class extends ValidarCidTrigger EmptyInterceptor {
      // Implementation of class
      }


      // Add the following line of code to the persistence.xml file

      <property name = "hibernate.ejb.interceptor" value = "gehos.comun.util.ValidarCidTrigger" />

      The problem is that the interceptor is global and what I want is to run per session. Sorry for my english...