我知道我可以这样写:
Query query = session.createSQLQuery(
"select s.stock_code from stock s where s.stock_code = :stockCode")
.setParameter("stockCode", "7277");
List result = query.list();
如果我使用列表值,我必须怎么做
select count(*) from skill where skill.id in (1,2,4)
我想替换硬编码值。