* Explicit access type specification does not affect the access type of
* other entity classes or mapped super classes in the entity hierarchy.
*/
private int getAccessCode(Class<?> cls) {
int accessCode = AccessCode.UNKNOWN;
Access access = AccessController.doPrivileged(
J2DoPrivHelper.getAnnotationAction(cls, Access.class));
if (access != null) {
accessCode |= AccessCode.EXPLICIT |
(access.value() == AccessType.FIELD ?
AccessCode.FIELD : AccessCode.PROPERTY);
}
return accessCode;
}