JAMES-1823 Correct the testing for Spring with JPA

Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/712f2482
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/712f2482
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/712f2482

Branch: refs/heads/master
Commit: 712f2482fef33089dcc045b206e9dd737bb18040
Parents: b92d301
Author: quynhn <qngu...@linagora.com>
Authored: Thu Apr 27 17:19:30 2017 +0700
Committer: benwa <btell...@linagora.com>
Committed: Thu May 4 09:25:52 2017 +0700

----------------------------------------------------------------------
 mailbox/jpa/src/main/resources/META-INF/persistence.xml | 3 +++
 server/app/src/test/resources/mailbox.xml               | 4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/712f2482/mailbox/jpa/src/main/resources/META-INF/persistence.xml
----------------------------------------------------------------------
diff --git a/mailbox/jpa/src/main/resources/META-INF/persistence.xml 
b/mailbox/jpa/src/main/resources/META-INF/persistence.xml
index a63e0d3..4cb6069 100644
--- a/mailbox/jpa/src/main/resources/META-INF/persistence.xml
+++ b/mailbox/jpa/src/main/resources/META-INF/persistence.xml
@@ -35,6 +35,9 @@
         
<class>org.apache.james.mailbox.jpa.quota.model.MaxUserMessageCount</class>
         <class>org.apache.james.mailbox.jpa.quota.model.MaxUserStorage</class>
         <class>org.apache.james.mailbox.jpa.quota.model.JpaCurrentQuota</class>
+        
<class>org.apache.james.mailbox.jpa.mail.model.JPAMailboxAnnotation</class>
+        
<class>org.apache.james.mailbox.jpa.mail.model.JPAMailboxAnnotationId</class>
+        
<class>org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMailboxMessage$MailboxIdUidKey</class>
         <properties>
             <property name="openjpa.jdbc.SynchronizeMappings" 
value="buildSchema(ForeignKeys=true)"/>
             <property name="openjpa.jdbc.MappingDefaults" 
value="ForeignKeyDeleteAction=cascade, JoinForeignKeyDeleteAction=cascade"/>

http://git-wip-us.apache.org/repos/asf/james-project/blob/712f2482/server/app/src/test/resources/mailbox.xml
----------------------------------------------------------------------
diff --git a/server/app/src/test/resources/mailbox.xml 
b/server/app/src/test/resources/mailbox.xml
index 9da9919..22c2e3e 100644
--- a/server/app/src/test/resources/mailbox.xml
+++ b/server/app/src/test/resources/mailbox.xml
@@ -25,8 +25,8 @@
 
 <mailbox>
     <!-- supported providers are: -->
-    <!-- jpa, jcr, maildir, hbase, memory -->
+    <!-- jpa, jcr, maildir, hbase, memory, maildir, jpa -->
     <!--  -->
     <!-- Be aware that maildir will only work on unix like operation systems! 
-->
-    <provider>maildir</provider>
+    <provider>jpa</provider>
 </mailbox>


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

Reply via email to