openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwsut...@apache.org
Subject svn commit: r1309812 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/validation/ValidatingLifecycleEventManager.java
Date Thu, 05 Apr 2012 12:19:20 GMT
Author: kwsutter
Date: Thu Apr  5 12:19:20 2012
New Revision: 1309812

URL: http://svn.apache.org/viewvc?rev=1309812&view=rev
Log:
OPENJPA-2168.  Forgot to check whether the base LifecycleEventManager was activated when the
ValidatingLifecycleEventManager is in play.

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/validation/ValidatingLifecycleEventManager.java

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/validation/ValidatingLifecycleEventManager.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/validation/ValidatingLifecycleEventManager.java?rev=1309812&r1=1309811&r2=1309812&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/validation/ValidatingLifecycleEventManager.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/validation/ValidatingLifecycleEventManager.java
Thu Apr  5 12:19:20 2012
@@ -146,7 +146,7 @@ public class ValidatingLifecycleEventMan
      */
     @Override
     public boolean isActive(ClassMetaData meta) {
-        return isValidationEnabled();
+        return isValidationEnabled() || super.isActive(meta);
     }
 
     public boolean isValidationEnabled() {



Mime
View raw message