Author: norman
Date: Fri Apr 29 07:11:24 2011
New Revision: 1097707
URL: http://svn.apache.org/viewvc?rev=1097707&view=rev
Log:
cascade deletes on foreignkeys
Modified:
james/server/trunk/container-spring/src/main/config/examples/META-INF/persistence.xml
james/server/trunk/container-spring/src/main/config/james/META-INF/persistence.xml
Modified:
james/server/trunk/container-spring/src/main/config/examples/META-INF/persistence.xml
URL:
http://svn.apache.org/viewvc/james/server/trunk/container-spring/src/main/config/examples/META-INF/persistence.xml?rev=1097707&r1=1097706&r2=1097707&view=diff
==============================================================================
---
james/server/trunk/container-spring/src/main/config/examples/META-INF/persistence.xml
(original)
+++
james/server/trunk/container-spring/src/main/config/examples/META-INF/persistence.xml
Fri Apr 29 07:11:24 2011
@@ -55,6 +55,8 @@
<properties>
<!-- Create tables on startup -->
<property name="openjpa.jdbc.SynchronizeMappings"
value="buildSchema(ForeignKeys=true)"/>
+ <!-- Create foreign keys on startup -->
+ <property name="openjpa.jdbc.MappingDefaults"
value="ForeignKeyDeleteAction=cascade, JoinForeignKeyDeleteAction=cascade"/>
<!-- Reorder SQL statements to satisfy database foreign key
constraints -->
<property name="openjpa.jdbc.SchemaFactory"
value="native(ForeignKeys=true)"/>
<!-- Disable query cache for now. It seems to be buggy. -->
Modified:
james/server/trunk/container-spring/src/main/config/james/META-INF/persistence.xml
URL:
http://svn.apache.org/viewvc/james/server/trunk/container-spring/src/main/config/james/META-INF/persistence.xml?rev=1097707&r1=1097706&r2=1097707&view=diff
==============================================================================
---
james/server/trunk/container-spring/src/main/config/james/META-INF/persistence.xml
(original)
+++
james/server/trunk/container-spring/src/main/config/james/META-INF/persistence.xml
Fri Apr 29 07:11:24 2011
@@ -36,6 +36,7 @@
<class>org.apache.james.rrt.jpa.model.JPARecipientRewrite</class>
<properties>
<property name="openjpa.jdbc.SynchronizeMappings"
value="buildSchema(ForeignKeys=true)"/>
+ <property name="openjpa.jdbc.MappingDefaults"
value="ForeignKeyDeleteAction=cascade, JoinForeignKeyDeleteAction=cascade"/>
<property name="openjpa.jdbc.SchemaFactory"
value="native(ForeignKeys=true)"/>
<property name="openjpa.jdbc.QuerySQLCache" value="false"/>
</properties>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]