From c634dcb4d81b286fe77bc1cffdd92c811116948c Mon Sep 17 00:00:00 2001 From: "Kevin W. Sutter" Date: Thu, 31 May 2007 21:24:46 +0000 Subject: [PATCH] OPENJPA-248. Modified parseForeignKey to set the appropriate cascade update action. git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@543265 13f79535-47bb-0310-9956-ffa450edef68 --- .../persistence/jdbc/AnnotationPersistenceMappingParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/AnnotationPersistenceMappingParser.java b/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/AnnotationPersistenceMappingParser.java index 40a97d9cc..823812689 100644 --- a/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/AnnotationPersistenceMappingParser.java +++ b/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/AnnotationPersistenceMappingParser.java @@ -630,7 +630,7 @@ public class AnnotationPersistenceMappingParser fk.setName(name); fk.setDeferred(deferred); fk.setDeleteAction(toForeignKeyAction(deleteAction)); - fk.setUpdateAction(toForeignKeyAction(deleteAction)); + fk.setUpdateAction(toForeignKeyAction(updateAction)); info.setForeignKey(fk); }