[JBoss-dev] [JBoss JIRA] Updated: (EJBTHREE-38) EJB3 CVS is incompatible with hibernate3 CVS

2005-01-11 Thread Bill Burke (JIRA)
 [ http://jira.jboss.com/jira/browse/EJBTHREE-38?page=history ]

Bill Burke updated EJBTHREE-38:
---

Fix Version: Preview 3

 EJB3 CVS is incompatible with hibernate3 CVS
 

  Key: EJBTHREE-38
  URL: http://jira.jboss.com/jira/browse/EJBTHREE-38
  Project: EJB 3.0
 Type: Patch
 Versions: Preview 3
 Reporter: Simeon Koptelov
 Assignee: Bill Burke
  Fix For: Preview 3



 The methods of manipulation of listeners have changed in hibernate, so EJB3 
 CVS doesn't compile now. 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.java19 Dec 2004 22:35:16 -  1.9
 +++ HibernateSessionFactory.java28 Dec 2004 23:38:42 -
 @@ -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();

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [JBoss JIRA] Updated: (EJBTHREE-38) EJB3 CVS is incompatible with hibernate3 CVS

2004-12-28 Thread Simeon Koptelov (JIRA)
 [ http://jira.jboss.com/jira/browse/EJBTHREE-38?page=history ]

Simeon Koptelov updated EJBTHREE-38:


Description: 
The methods of manipulation of listeners have changed in hibernate, so EJB3 CVS 
doesn't compile now. 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.java19 Dec 2004 22:35:16 -  1.9
+++ HibernateSessionFactory.java28 Dec 2004 23:38:42 -
@@ -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();

  was:
The way of manipulation of listener methods has changed in hibernate, so EJB3 
CVS doesn't compile now. 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.java19 Dec 2004 22:35:16 -  1.9
+++ HibernateSessionFactory.java28 Dec 2004 23:38:42 -
@@ -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();


 EJB3 CVS is incompatible with hibernate3 CVS
 

  Key: EJBTHREE-38
  URL: http://jira.jboss.com/jira/browse/EJBTHREE-38
  Project: EJB 3.0
 Type: Patch
 Versions: Preview 3
 Reporter: Simeon Koptelov
 Assignee: Bill Burke



 The methods of manipulation of listeners have changed in hibernate, so EJB3 
 CVS doesn't compile now. 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.java19 Dec 2004 22:35:16 -  1.9
 +++ HibernateSessionFactory.java28 Dec 2004 23:38:42 -
 @@ -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