hibernate函数查询问题 select aclState&1, aclState&2 from t_acl; 对应实体ACL。这条语句用hibernate怎么写?不是createSQLQuery这种。还有我用hibernateTemplate怎么不能getSession(),Api上有这个方法。谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Query query=this.hibernateTemplate.getSessionFactory().getCurrentSession().createQuery("select aclState&1,aclState&2 from t_acl"); 我的意思是用HQL怎么写,还有hibernateTemplate.getSession()这个怎么不行。 hibernateTemplate.getSessionFactory().getCurrentSession();hibernateTemplate.getSessionFactory().openSession();以上是从连接池中获得连接hibernateTemplate.getSession()貌似不是从连接池中获得 关于CatchedRowSet的光标移动问题 【高分求解决办法】Eclipse TreeViewer实现的表格编辑问题 再次遇到java乱码问题 问下jsp页面上Date格式错误的问题 拿不到联接 关于hibernate中load() 在线阅读器的插件 jasper 中的error loading *.jasper问题 关于TOMCAT4.1+SQLSERVER2000 配置数据库连接池的问题 JDK+Tomcat5.0+IIS 的配置 SSH项目中如何在实体类设置多个主键? Axis webservice 异常问题
hibernateTemplate.getSessionFactory().openSession();
以上是从连接池中获得连接
hibernateTemplate.getSession()貌似不是从连接池中获得