摘要:
1.HQL语句是支持持久化对象,依赖于Query类进行HQL查询2.Query接口通过Session对象session中生成,createQuery()方法用于执行HQL语句(1) Query query = session.createQuery("fromUser a where a.objId like ? and a.userName like ?");(2)Query query = session.createQuery("fromUser a where a.objId like :id and a.userName like : userName 阅读全文