You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2011/04/29 07:43:34 UTC

svn commit: r1097690 - /james/mailbox-integration-tester/trunk/src/test/java/org/apache/james/mailbox/jpa/host/JPAHostSystem.java

Author: norman
Date: Fri Apr 29 05:43:33 2011
New Revision: 1097690

URL: http://svn.apache.org/viewvc?rev=1097690&view=rev
Log:
Allow the database to correctly handle foreign keys, which in our case is to remove the mapped entry. This fix the errors which were introduced by merging Message / MailboxMembership. See MAILBOX-61

Modified:
    james/mailbox-integration-tester/trunk/src/test/java/org/apache/james/mailbox/jpa/host/JPAHostSystem.java

Modified: james/mailbox-integration-tester/trunk/src/test/java/org/apache/james/mailbox/jpa/host/JPAHostSystem.java
URL: http://svn.apache.org/viewvc/james/mailbox-integration-tester/trunk/src/test/java/org/apache/james/mailbox/jpa/host/JPAHostSystem.java?rev=1097690&r1=1097689&r2=1097690&view=diff
==============================================================================
--- james/mailbox-integration-tester/trunk/src/test/java/org/apache/james/mailbox/jpa/host/JPAHostSystem.java (original)
+++ james/mailbox-integration-tester/trunk/src/test/java/org/apache/james/mailbox/jpa/host/JPAHostSystem.java Fri Apr 29 05:43:33 2011
@@ -78,7 +78,6 @@ public class JPAHostSystem extends ImapH
 
         // Configure OpenJPA Tables creation
         properties.put("openjpa.jdbc.SynchronizeMappings", "buildSchema(ForeignKeys=true)"); // Create Foreign Keys
-        properties.put("openjpa.jdbc.MappingDefaults", "ForeignKeyDeleteAction=restrict, JoinForeignKeyDeleteAction=restrict");
         properties.put("openjpa.jdbc.SchemaFactory", "native(ForeignKeys=true)");
 
         // Configure OpenJPA Cache



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