隨筆 - 71  文章 - 15  trackbacks - 0
          <2025年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          因為口渴,上帝創造了水;
          因為黑暗,上帝創造了火;
          因為我需要朋友,所以上帝讓你來到我身邊
          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★ 閱讀(377) 評論(0)  編輯  收藏 所屬分類: Hibernate學習
          主站蜘蛛池模板: 马鞍山市| 茂名市| 清徐县| 仁化县| 安阳市| 陆河县| 永吉县| 铜梁县| 兴化市| 冕宁县| 寻乌县| 溆浦县| 当雄县| 航空| 黄骅市| 凭祥市| 玛纳斯县| 罗源县| 广饶县| 长兴县| 新干县| 松原市| 清河县| 托克逊县| 伊通| 蒙山县| 商城县| 眉山市| 静安区| 寿光市| 黄浦区| 乐至县| 余江县| 巴林右旗| 大名县| 景德镇市| 肇州县| 丘北县| 西青区| 平阴县| 高要市|