IDAO.class
);
roleUser.set("roleCode", getRoleId());
roleUser.set("groupCode", getGroupId());
roleUser.select();
} else if ( getReferenceRole() != null && getReferenceRole().getMapping(instance) != null ) {
roleUser = GenericDAO.createDAOImpl(
DefaultConnectionFactory.create(),
"select R.EMPCODE from EMPTABLE E, (select PARTCODE, EMPCODE from EMPTABLE where EMPCODE= ?empCode) T, ROLEUSERTABLE R where E.ISDELETED='0' and E.PARTCODE = T.PARTCODE and R.ROLECODE = ?roleCode and R.EMPCODE = E.EMPCODE ",
IDAO.class