yuanshen

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

你可能感兴趣的:(yuanshen)