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

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

    fiax

      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...