Hql参数占位符使用 : http://www.cnblogs.com/wjjFJ/p/5947076.html
占位符使用 重 0 开始。
"from User u where u.name = ?"
setParamter(0,"line")
参数
"from User u where u.name =:name"
query.setParamter("name","line");
Hql参数占位符使用 : http://www.cnblogs.com/wjjFJ/p/5947076.html
占位符使用 重 0 开始。
"from User u where u.name = ?"
setParamter(0,"line")
参数
"from User u where u.name =:name"
query.setParamter("name","line");