0 Replies Latest reply on Apr 21, 2015 3:35 AM by fiax

    Has someone implemented a trigger level in hibernate session?


      Hello friends, I am new to the forum, and to be honest I joined because I really need help with my problem. Just do not know how to implement a hibernate interceptor in Seam.

      // I implemented my trigger:

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

      // Then I adiconado the following line in the persistence.xml file:

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

      // But the trigger "Validate Cid Trigger" works globally me and not what I want. Excuse my English (google translator) I'm Cuban and would appreciate any help.