【发布时间】:2009-08-10 16:57:20
【问题描述】:
当我想检查用户名并检索此特定用户名的其他信息时,我有具有 utf8 字符集和 utf8 排序规则的登录表,hql 查询给我与小写和大写相同的结果。 我应该为我的 HQL 查询做什么 我使用 Mysql 5 和 java hibernarte
这是我的查询:
return queryManager.executeQueryUniqueResult("select b.login from BranchEntity b where b.userName = ?", username);
【问题讨论】:
标签: mysql login hql case-sensitive