hibernate——hql总结
1. 查询整个映射对象所有字段?
- //直接from查询出来的是一个映射对象,即:查询整个映射对象所有字段?????
- ????????String?hql?=?"from?Users";?????
- ????????Query?query?=?session.createQuery(hql);?????
- ?????????????
- ????????List<Users>?users?=?query.list();?????
- ????????for(Users?user?:?users){?????
- ????????????System.out.println(us