1 Reply Latest reply on Dec 28, 2004 12:57 PM by Simeon Koptelov

    Incompatibility with hibernate CVS

    Simeon Koptelov Newbie

      The EJB3 CVS is incompatible with hibernate3 CVS. Here's the patch:

      Index: HibernateSessionFactory.java
      ===================================================================
      RCS file: /cvsroot/jboss/jboss-ejb3/src/main/org/jboss/ejb3/HibernateSessionFactory.java,v
      retrieving revision 1.9
      diff -u -r1.9 HibernateSessionFactory.java
      --- HibernateSessionFactory.java 19 Dec 2004 22:35:16 -0000 1.9
      +++ HibernateSessionFactory.java 28 Dec 2004 23:38:42 -0000
      @@ -149,11 +149,11 @@
       callbackHandler.add(entity);
       }
      
      - SessionEventListenerConfig listenerCfg = cfg.getSessionEventListenerConfig();
      - listenerCfg.setPostDeleteEventListener(new EJB3PostDeleteEventListener(callbackHandler));
      - listenerCfg.setPostLoadEventListener(new EJB3PostLoadEventListener(callbackHandler));
      - listenerCfg.setPostUpdateEventListener(new EJB3PostUpdateEventListener(callbackHandler));
      - listenerCfg.setPostInsertEventListener(new EJB3PostInsertEventListener(callbackHandler));
      + cfg.setListener("post-delete", new EJB3PostDeleteEventListener(callbackHandler));
      + cfg.setListener("post-load",new EJB3PostLoadEventListener(callbackHandler));
      + cfg.setListener("post-update",new EJB3PostUpdateEventListener(callbackHandler));
      + cfg.setListener("post-insert",new EJB3PostInsertEventListener(callbackHandler));
      +
       /*
       AnnotationConfiguration cfg = new AnnotationConfiguration();
       Iterator iter = classes.iterator();