int result = session
.createSQLQuery(
"update member set blockconnectionrequests = :blockval, onlyshowprofiletomyconnections = :onlyval where username in ('icScholar', 'smsAdminer')")
.setParameter("blockval", false).setParameter("onlyval", false)
.executeUpdate();