最新的Hibernate支持自己写SQL语句吗

2025-03-26 16:34:44
推荐回答(1个)
回答1:

可以用Query query=s.createQuery("select p from Product p ”)写hql语句,
还可以使用Criteria做数据库的操作