If we don't know the access type for a class when parsing, first check for a superclass and default to that class' access type.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501256 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Marc Prud'hommeaux 2007-01-30 00:54:27 +00:00
parent 24cf4c939e
commit 0273937971
1 changed files with 2 additions and 1 deletions
openjpa-persistence/src/main/java/org/apache/openjpa/persistence

View File

@ -742,7 +742,8 @@ public class XMLPersistenceMetaDataParser
return false;
}
// if we don't know the access type, check for a superclass
// if we don't know the access type, check to see if a superclass
// has already defined the access type
int defaultAccess = _access;
if (defaultAccess == ClassMetaData.ACCESS_UNKNOWN) {
ClassMetaData sup = repos.getCachedMetaData(_cls.getSuperclass());