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: [email protected]
For additional commands, e-mail: [email protected]