List<Car> all = session.createQuery("from Car").list();
eclipse 有警告,提示The method list() from the type Query is deprecated
请问,该用什么方法替换?
新手自学,多多指教!
...全文
5593打赏收藏
Hibernate5 list()方法过时,那现在查询用什么方法?
Hibernate 版本是5.2.0 List all = session.createQuery("from Car").list(); eclipse 有警告,提示The method list() from the type Query is deprecated 请问,该用什么方法替换? 新手自学,多多指教!