org.hibernate.hql.ast.QuerySyntaxException: unexpected token: group near line 1, column 130 [select count(*) from com.huilan.easysso.model.Group g where g.id in(select group.id from com.huilan.easysso.model.User user join group.groupUsers gu where gu.id=1751)]
好像不是那个问题
String hql ="select g from Group g where g.id in(select group.id from User user join group.groupUsers gu where gu.id="+userid+")";
sql语句是这么写的