james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r992780 - /james/server/trunk/core-function/src/main/java/org/apache/james/domain/JPADomainList.java
Date Sun, 05 Sep 2010 13:38:23 GMT
Author: norman
Date: Sun Sep  5 13:38:22 2010
New Revision: 992780

URL: http://svn.apache.org/viewvc?rev=992780&view=rev
Log:
Use @PersistenceUnit annotation

Modified:
    james/server/trunk/core-function/src/main/java/org/apache/james/domain/JPADomainList.java

Modified: james/server/trunk/core-function/src/main/java/org/apache/james/domain/JPADomainList.java
URL: http://svn.apache.org/viewvc/james/server/trunk/core-function/src/main/java/org/apache/james/domain/JPADomainList.java?rev=992780&r1=992779&r2=992780&view=diff
==============================================================================
--- james/server/trunk/core-function/src/main/java/org/apache/james/domain/JPADomainList.java
(original)
+++ james/server/trunk/core-function/src/main/java/org/apache/james/domain/JPADomainList.java
Sun Sep  5 13:38:22 2010
@@ -25,6 +25,7 @@ import javax.persistence.EntityManager;
 import javax.persistence.EntityManagerFactory;
 import javax.persistence.EntityTransaction;
 import javax.persistence.PersistenceException;
+import javax.persistence.PersistenceUnit;
 
 import org.apache.commons.configuration.ConfigurationException;
 import org.apache.commons.configuration.HierarchicalConfiguration;
@@ -139,6 +140,7 @@ public class JPADomainList extends Abstr
      * 
      * @param entityManagerFactory
      */
+    @PersistenceUnit
     public void setEntityManagerFactory(EntityManagerFactory entityManagerFactory) {
         this.entityManagerFactory = entityManagerFactory;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message