在Hibernate的HQL查询中,有数据库表(dept)对应的对象名称为Dept,下列HQL写法正确的有()
- A、String hql = "from com.hr.g3.persist.dept as model";
- B、String hql = "from com.hr.g3.persist.Dept ";
- C、String hql = "from Dept as model";
- D、String hql = "from dept ";
正确答案:B,C
答案解析:有
微信扫一扫手机做题
在Hibernate的HQL查询中,有数据库表(dept)对应的对象名称为Dept,下列HQL写法正确的有()
微信扫一扫手机做题