Hibernate5.x版本HQL限定查询 Legacy-style query parameters (`?`) are no longer supported
作者:互联网
在此版本的限定查询和4.0版本的限定查询:
如果查询语句是:
String hql = "select u from User u where u.gender = ?";
会出现 Legacy-style query parameters (`?`) are no longer supported的问题;
解决方式:
按照提示解决
String hql = "select u from User u where u.gender = ?1"
标签:Hibernate5,style,longer,限定,supported,查询,query,select 来源: https://www.cnblogs.com/Mr-Dxin/p/10954905.html