一路拾遺
          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
          對我很有幫助,非常感謝!  回復  更多評論
            

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


          網站導航:
           
          主站蜘蛛池模板: 宁海县| 沅陵县| 洪雅县| 林芝县| 内乡县| 临洮县| 江口县| 西藏| 新绛县| 吴堡县| 灵台县| 吴桥县| 明星| 徐水县| 叶城县| 吉林市| 专栏| 吉隆县| 石城县| 海安县| 石屏县| 临武县| 淮安市| 南部县| 黑龙江省| 格尔木市| 凤翔县| 通州市| 甘泉县| 柘城县| 葵青区| 凤城市| 衡阳市| 墨竹工卡县| 潜山县| 岳阳市| 钟山县| 博罗县| 新邵县| 海阳市| 贵溪市|