mirror of
https://github.com/apache/openjpa.git
synced 2025-03-08 17:49:18 +00:00
OPENJPA-1068 has listeners should be logical ORs instead of ANDs
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@776374 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e4488c4034
commit
5fc3725de5
@ -48,7 +48,7 @@ public class ValidatingLifecycleEventManager extends LifecycleEventManager {
|
||||
if (_validator == null) {
|
||||
return super.hasUpdateListeners(source, meta);
|
||||
}
|
||||
return _validator.validating(source, LifecycleEvent.BEFORE_PERSIST) &&
|
||||
return _validator.validating(source, LifecycleEvent.BEFORE_PERSIST) ||
|
||||
super.hasUpdateListeners(source, meta);
|
||||
}
|
||||
|
||||
@ -57,7 +57,7 @@ public class ValidatingLifecycleEventManager extends LifecycleEventManager {
|
||||
if (_validator == null) {
|
||||
return super.hasPersistListeners(source, meta);
|
||||
}
|
||||
return _validator.validating(source, LifecycleEvent.BEFORE_UPDATE) &&
|
||||
return _validator.validating(source, LifecycleEvent.BEFORE_UPDATE) ||
|
||||
super.hasPersistListeners(source, meta);
|
||||
}
|
||||
|
||||
@ -66,7 +66,7 @@ public class ValidatingLifecycleEventManager extends LifecycleEventManager {
|
||||
if (_validator == null) {
|
||||
return super.hasDeleteListeners(source, meta);
|
||||
}
|
||||
return _validator.validating(source, LifecycleEvent.BEFORE_DELETE) &&
|
||||
return _validator.validating(source, LifecycleEvent.BEFORE_DELETE) ||
|
||||
super.hasDeleteListeners(source, meta);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user