一路拾遺
          Collect By Finding All The Way ......
          posts - 81,comments - 41,trackbacks - 0
           1
           2        Session session = HibernateSessionFactory.getSession();
           3        Transaction tx = session.beginTransaction();
           4        List<ServiceInfo> serviceInfos = new ArrayList<ServiceInfo>();
           5        
           6        String hql = "from Serviceinfo where syned<>" + deleted + " order by servicename";
           7        
           8        Query query = session.createQuery(hql);
           9        query.setFirstResult(first);
          10        query.setMaxResults(count);
          11        Iterator<Serviceinfo> serviceinfosIt = query.iterate();
          12
          posted on 2009-07-13 13:49 胖胖泡泡 閱讀(403) 評論(1)  編輯  收藏

          FeedBack:
          # re: Hibernate中對limit的包裝[未登錄]
          2009-08-17 12:25 | chris
          對我很有幫助,非常感謝!  回復  更多評論
            

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 哈巴河县| 勃利县| 买车| 尤溪县| 文安县| 增城市| 墨玉县| 内乡县| 莱阳市| 陆河县| 宁乡县| 瑞丽市| 德庆县| 德州市| 聊城市| 徐州市| 迁安市| 固原市| 宝鸡市| 金平| 盐源县| 渝北区| 德化县| 维西| 犍为县| 铜鼓县| 阿瓦提县| 梅州市| 永年县| 红安县| 英吉沙县| 卢氏县| 松潘县| 巩义市| 蓬安县| 伊通| 张掖市| 茌平县| 开阳县| 奉节县| 唐河县|