【HQL语句的引号】想请教大家这一条语句啥意思?没百度到这一会单引号一会双引号的啊
下面这是我下的程序里的一句程序。整个程序运行没问题、就是这个HQL看不懂。。。
Query query = session.createQuery("from User where username='" + user.getUsername() + "' and password='" + user.getPassword() + "' and role='" + user.getRole() + "'");
为啥都是三个引号五个引号的,请教大家是啥意思啊