AIRAVATA-2316 Configure forward mapping to generate foreign keys
Project: http://git-wip-us.apache.org/repos/asf/airavata/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/71dcaac1 Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/71dcaac1 Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/71dcaac1 Branch: refs/heads/develop Commit: 71dcaac1b728bbf305e3e10de9d90399f68f9f51 Parents: e0f63bc Author: Marcus Christie <[email protected]> Authored: Fri Feb 10 11:55:45 2017 -0500 Committer: Anuj Bhandar <[email protected]> Committed: Tue Feb 28 12:55:35 2017 -0500 ---------------------------------------------------------------------- .../src/main/resources/META-INF/persistence.xml | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata/blob/71dcaac1/modules/user-profile/user-profile-core/src/main/resources/META-INF/persistence.xml ---------------------------------------------------------------------- diff --git a/modules/user-profile/user-profile-core/src/main/resources/META-INF/persistence.xml b/modules/user-profile/user-profile-core/src/main/resources/META-INF/persistence.xml index 4791c67..12ae6cc 100644 --- a/modules/user-profile/user-profile-core/src/main/resources/META-INF/persistence.xml +++ b/modules/user-profile/user-profile-core/src/main/resources/META-INF/persistence.xml @@ -25,5 +25,9 @@ <class>org.apache.airavata.user.registry.core.entities.UserProfileEntity</class> <class>org.apache.airavata.user.registry.core.entities.NSFDemographicsEntity</class> <exclude-unlisted-classes>true</exclude-unlisted-classes> + <properties> + <property name="openjpa.jdbc.MappingDefaults" + value="ForeignKeyDeleteAction=cascade, JoinForeignKeyDeleteAction=cascade" /> + </properties> </persistence-unit> </persistence>
