OPENJPA-2284: Save NPE while parsing cascade

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1416742 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Pinaki Poddar 2012-12-04 01:41:24 +00:00
parent 2d5ab5c862
commit 88cc847a1c
1 changed files with 2 additions and 4 deletions

View File

@ -1361,9 +1361,7 @@ public class XMLPersistenceMetaDataParser
return;
ValueMetaData vmd = fmd;
switch (_strategy) {
case ONE_MANY:
case MANY_MANY:
if (_strategy == ONE_MANY || _strategy == MANY_MANY) {
vmd = fmd.getElement();
}
for (CascadeType cascade : cascades) {