Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.4.0
-
None
-
None
Description
MSentryPrivilege is an embedded field of MSentryRole, When query a MSentryRole that contains MSentryPrivilege as embedded fields, the embedded field MSentryPrivilege may returned as null.
For example:
MSentryRole mRole = getMSentryRole(pm, roleName); if (mRole != null) { mRole.getPrivileges(); // the privileges may be null, although the role have privileges }
Solution:
JDO defaults to lazy loading ,MSentryPrivilege should be eager-loading .