Transaction tx = null;
try {
aSession = getSession();
tx = aSession.beginTransaction();
SbiExtRoles hibRole = (SbiExtRoles)aSession.load(SbiExtRoles.class, aRole.getId());
hibRole.setCode(aRole.getCode());
hibRole.setDescr(aRole.getDescription());
hibRole.setName(aRole.getName());
hibRole.setIsAbleToSaveSubobjects(new Boolean(aRole.isAbleToSaveSubobjects()));
hibRole.setIsAbleToSeeSubobjects(new Boolean(aRole.isAbleToSeeSubobjects()));
hibRole.setIsAbleToSeeSnapshots(new Boolean(aRole.isAbleToSeeSnapshots()));
hibRole.setIsAbleToSeeViewpoints(new Boolean(aRole.isAbleToSeeViewpoints()));
hibRole.setIsAbleToSeeNotes(new Boolean(aRole.isAbleToSeeNotes()));
hibRole.setIsAbleToSeeMetadata(new Boolean(aRole.isAbleToSeeMetadata()));
hibRole.setIsAbleToSaveMetadata(new Boolean(aRole.isAbleToSaveMetadata()));
hibRole.setIsAbleToSendMail(new Boolean(aRole.isAbleToSendMail()));
hibRole.setIsAbleToSaveRememberMe(new Boolean(aRole.isAbleToSaveRememberMe()));
hibRole.setIsAbleToSaveIntoPersonalFolder(new Boolean(aRole.isAbleToSaveIntoPersonalFolder()));
hibRole.setIsAbleToBuildQbeQuery(new Boolean(aRole.isAbleToBuildQbeQuery()));
SbiDomains roleType = (SbiDomains)aSession.load(SbiDomains.class, aRole.getRoleTypeID());
hibRole.setRoleType(roleType);
hibRole.setRoleTypeCode(aRole.getRoleTypeCD());
updateSbiCommonInfo4Update(hibRole);
tx.commit();
} catch (HibernateException he) {
logException(he);