SessionFactory sf=hibernateTemplate.getSessionFactory(); Session session=sf.openSession(); Query query = session.createSQLQuery(sql); 执行原生SQL 但是相对于HQL,查出的数据不是对应于po类。
关于hibernateTemplate的使用SQL执行查询
原创小刘氓 ©著作权
文章标签 hibernateTemplate的SQ 文章分类 前端开发
©著作权归作者所有:来自51CTO博客作者小刘氓的原创作品,请联系作者获取转载授权,否则将追究法律责任
下一篇:我的友情链接
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
SQL Server 执行计划3--关联查询
SQL Server执行计划,多表关联查询
Nested Loops Merge Join Hash Match