IM,我怎么能做到这一点select * from student wher userName = ***
与HQL如何检查是否使用表格中存在数据休眠使用我的JSP页面和MySQL休眠
,以及如何,如果该用户名在“学生”表中存在我赤?
在我的SQL我使用
ResultSet resultat = statement.executeQuery();
if (resultat.next()) { ....}
我试试这个
Session hibernateSession = MyDB.HibernateUtil.currentSession();
hibernateSession.find("select xxx from Etudinat where p.Nom=xxxx");
它给我一个名单,但
我有一个登录表单给我一个用户名和密码
我想要如果该用户名存在表中的学生学生在会话上设置用户
什么是安全的方式做到这一点
什么是例外? – Olaf
i'v编辑我的问题 – David