Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是 sql 的查询
SELECT type ,SUM(amount) FROM CustomerPayment GROUP BY type
我怎么能在hibernate中写这个?
在 hql 中也是一样的:
select c.type, sum(c.amount) from CustomerPayment c group by c.type