隨筆 - 71  文章 - 15  trackbacks - 0
          <2025年5月>
          27282930123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

          因為口渴,上帝創造了水;
          因為黑暗,上帝創造了火;
          因為我需要朋友,所以上帝讓你來到我身邊
          Click for Shaanxi xi'an, Shaanxi Forecast
          ╱◥█◣
            |田|田|
          ╬╬╬╬╬╬╬╬╬╬╬
          If only I have such a house!
          〖總在爬山 所以艱辛〗
          Email:myesjoy@yahoo.com.cn
          NickName:yesjoy
          MSN:myesjoy@hotmail.com
          QQ:150230516

          〖總在尋夢 所以苦痛〗

          常用鏈接

          留言簿(3)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          Hibernate在線

          Java友情

          Java認證

          linux經典

          OA系統

          Spring在線

          Structs在線

          專家專欄

          企業信息化

          大型設備共享系統

          工作流

          工作流產品

          網上購書

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          <? xml?version="1.0" ?>
          <! DOCTYPE?hibernate-mapping?PUBLIC
          ????"-//Hibernate/Hibernate?Mapping?DTD//EN"
          ????"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"?
          >

          < hibernate-mapping? package ="gov.cfte.object.hibernate.model" >
          ????
          < class? name ="ObjectLog" ?table ="OBJECT_LOG" >
          ????????
          < id? column ="ID" ?name ="Id" ?type ="string" ?length ="32" >
          ????????????
          < generator? class ="net.sf.hibernate.id.UUIDHexGenerator" ? />
          ????????
          </ id > ?
          ????????
          < property
          ????????????
          column ="TYPE_ID"
          ????????????length
          ="32"
          ????????????name
          ="TypeId"
          ????????????not-null
          ="false"
          ????????????type
          ="string"
          ?????????
          />
          ????????
          < property
          ????????????
          column ="OPTIME"
          ????????????length
          ="26"
          ????????????name
          ="Optime"
          ????????????not-null
          ="false"
          ????????????type
          ="timestamp"
          ?????????
          />
          ????????
          < property
          ????????????
          column ="USER_ID"
          ????????????length
          ="32"
          ????????????name
          ="UserId"
          ????????????not-null
          ="false"
          ????????????type
          ="string"
          ?????????
          />
          ????????
          < property
          ????????????
          column ="OPINFO"
          ????????????length
          ="32"
          ????????????name
          ="Opinfo"
          ????????????not-null
          ="false"
          ????????????type
          ="string"
          ?????????
          />
          ????????
          < property
          ????????????
          column ="RECORDINFO"
          ????????????length
          ="1024"
          ????????????name
          ="Recordinfo"
          ????????????not-null
          ="false"
          ????????????type
          ="string"
          ?????????
          />
          ????????
          < property
          ????????????
          column ="IP"
          ????????????length
          ="32"
          ????????????name
          ="Ip"
          ????????????not-null
          ="false"
          ????????????type
          ="string"
          ?????????
          />
          ????
          </ class >
          </ hibernate-mapping >
          return ? this .getHibernateTemplate().find( " from?ObjectLog " );
          return ? this .getHibernateTemplate().find( " from?ObjectLog?c?where?c.Opinfo?=?? " ,?queryCondition); // 根據操作方式來精確查詢(已測試通過)
          return ? this .getHibernateTemplate().find( " from?ObjectLog?c?where?c.Opinfo?like?? " ,? " % " + queryCondition + " % " ); // 根據操作方式來模糊查詢(已測試通過)
          return ? this .getHibernateTemplate().find( " from?ObjectLog?c?where?c.TypeId=??and?c.Opinfo?like?? " , new ?Object[]{typeId, " % " + queryCondition + " % " });
          posted on 2006-03-28 17:58 ★yesjoy★ 閱讀(373) 評論(0)  編輯  收藏 所屬分類: Hibernate學習
          主站蜘蛛池模板: 道孚县| 南岸区| 九寨沟县| 囊谦县| 唐河县| 沁水县| 信丰县| 旬邑县| 如皋市| 无棣县| 行唐县| 长白| 永春县| 武冈市| 营口市| 太保市| 百色市| 板桥市| 青岛市| 合阳县| 瑞昌市| 永登县| 醴陵市| 格尔木市| 平江县| 班玛县| 汉沽区| 寻乌县| 资兴市| 临沧市| 张掖市| 舒兰市| 古交市| 佛冈县| 梓潼县| 湖北省| 南岸区| 泰和县| 峨山| 神农架林区| 渝北区|