锘??xml version="1.0" encoding="utf-8" standalone="yes"?>99人中文字幕亚洲区,亚洲一区二区女搞男,亚洲午夜成激人情在线影院http://www.tkk7.com/wufalong/category/25523.html鎬濇兂鏈夊榪滐紝鎴戜滑灝辮兘璧板榪滐紒zh-cnMon, 10 Sep 2007 01:42:15 GMTMon, 10 Sep 2007 01:42:15 GMT60鏂囩珷緋葷粺.Hibernate鐨勪竴瀵瑰,澶氬涓鏄犲皠http://www.tkk7.com/wufalong/articles/143329.htmlcrazycrazyFri, 07 Sep 2007 02:09:00 GMThttp://www.tkk7.com/wufalong/articles/143329.htmlhttp://www.tkk7.com/wufalong/comments/143329.htmlhttp://www.tkk7.com/wufalong/articles/143329.html#Feedback0http://www.tkk7.com/wufalong/comments/commentRss/143329.htmlhttp://www.tkk7.com/wufalong/services/trackbacks/143329.html鏂囩珷鍒嗕負(fù)涓夌駭鐩綍,bigSortID,secondSordID,smallSortID
聽(tīng)聽(tīng)1<?xml聽(tīng)version="1.0"?>
聽(tīng)聽(tīng)2<!DOCTYPE聽(tīng)hibernate-mapping
聽(tīng)聽(tīng)3PUBLIC聽(tīng)"-//Hibernate/Hibernate聽(tīng)Mapping聽(tīng)DTD//EN"
聽(tīng)聽(tīng)4"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
聽(tīng)聽(tīng)5<hibernate-mapping>
聽(tīng)聽(tīng)6聽(tīng)<class聽(tīng)name="news.entity.ArticleSort"聽(tīng)dynamic-insert="true"聽(tīng)dynamic-update="true"聽(tīng)聽(tīng)table="art_sort">
聽(tīng)聽(tīng)7聽(tīng)聽(tīng)聽(tīng)聽(tīng)<id聽(tīng)name="id"聽(tīng)type="java.lang.Integer"聽(tīng)unsaved-value="null"聽(tīng)>
聽(tīng)聽(tīng)8聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)<column聽(tīng)name="id"聽(tīng)not-null="true"/>
聽(tīng)聽(tīng)9聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)<generator聽(tīng)class="native"/>
聽(tīng)10聽(tīng)聽(tīng)聽(tīng)聽(tīng)</id>
聽(tīng)11聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="sortName"聽(tīng)/>
聽(tīng)12聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="parentID"聽(tīng)/>
聽(tīng)13聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="createDate"聽(tīng)/>
聽(tīng)14聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="editDate"聽(tīng)/>
聽(tīng)15聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="orderBy"聽(tīng)/>
聽(tīng)16聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="descript"聽(tīng)/>
聽(tīng)17聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="editUser"聽(tīng)/>
聽(tīng)18聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="sortType"聽(tīng)/>
聽(tīng)19聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="isOpen"聽(tīng)/>
聽(tīng)20聽(tīng)聽(tīng)聽(tīng)聽(tīng)
聽(tīng)21聽(tīng)聽(tīng)聽(tīng)聽(tīng)<!--聽(tīng)灝忕被瀵瑰簲鐨勬枃绔犅?/span>-->
聽(tīng)22聽(tīng)聽(tīng)聽(tīng)聽(tīng)<set聽(tīng)name="article"聽(tīng)inverse="false"聽(tīng)lazy聽(tīng)="true"聽(tīng)order-by="聽(tīng)id聽(tīng)"聽(tīng)cascade="none">聽(tīng)
聽(tīng)23聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)<key聽(tīng)column="smallSortID"/>
聽(tīng)24聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)<one-to-many聽(tīng)class="news.entity.Article"聽(tīng)聽(tīng)/>
聽(tīng)25聽(tīng)聽(tīng)聽(tīng)聽(tīng)</set>
聽(tīng)26聽(tīng)聽(tīng)聽(tīng)聽(tīng)
聽(tīng)27聽(tīng)聽(tīng)聽(tīng)聽(tīng)<!--聽(tīng)灝忕被瀵瑰簲鐨勫ぇ綾宦?/span>-->
聽(tīng)28聽(tīng)聽(tīng)聽(tīng)聽(tīng)<many-to-one聽(tīng)聽(tīng)insert="false"聽(tīng)update="false"聽(tīng)name="parentBigSort"聽(tīng)
聽(tīng)29聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)class聽(tīng)=聽(tīng)"news.entity.ArticleSort"
聽(tīng)30聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)column聽(tīng)=聽(tīng)"parentID"聽(tīng)/>
聽(tīng)31聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)
聽(tīng)32聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)<!--聽(tīng)澶х被瀵瑰簲灝忕被聽(tīng)-->
聽(tīng)33聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)<set聽(tīng)name="smallSortSet"聽(tīng)inverse="false"聽(tīng)lazy聽(tīng)="true"聽(tīng)order-by="聽(tīng)id聽(tīng)"聽(tīng)cascade="none">聽(tīng)
聽(tīng)34聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)<key聽(tīng)column="parentID"/>
聽(tīng)35聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)<one-to-many聽(tīng)class="news.entity.ArticleSort"聽(tīng)聽(tīng)/>
聽(tīng)36聽(tīng)聽(tīng)聽(tīng)聽(tīng)</set>
聽(tīng)37</class>
聽(tīng)38</hibernate-mapping>
聽(tīng)39
聽(tīng)40
聽(tīng)41<?xml聽(tīng)version="1.0"?>
聽(tīng)42<!DOCTYPE聽(tīng)hibernate-mapping
聽(tīng)43PUBLIC聽(tīng)"-//Hibernate/Hibernate聽(tīng)Mapping聽(tīng)DTD//EN"
聽(tīng)44"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
聽(tīng)45<hibernate-mapping>
聽(tīng)46聽(tīng)<class聽(tīng)name="news.entity.Article"聽(tīng)dynamic-insert="true"聽(tīng)dynamic-update="true"聽(tīng)lazy="false"聽(tīng)table="art_news">
聽(tīng)47聽(tīng)聽(tīng)聽(tīng)聽(tīng)<id聽(tīng)name="id"聽(tīng)type="java.lang.Integer"聽(tīng)unsaved-value="null"聽(tīng)>
聽(tīng)48聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)<column聽(tīng)name="id"聽(tīng)not-null="true"/>
聽(tīng)49聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)<generator聽(tīng)class="native"/>
聽(tīng)50聽(tīng)聽(tīng)聽(tīng)聽(tīng)</id>
聽(tīng)51聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="title"聽(tīng)/>
聽(tīng)52聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="subTitle"聽(tīng)/>
聽(tīng)53聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="author"聽(tīng)/>
聽(tīng)54聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="source"聽(tīng)/>
聽(tīng)55聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="url"聽(tīng)/>
聽(tīng)56聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="picUrl"聽(tīng)/>
聽(tīng)57聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="bigSortID"聽(tīng)/>
聽(tīng)58聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="secondSortID"聽(tīng)/>
聽(tīng)59聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="smallSortID"聽(tīng)/>
聽(tīng)60聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="content"聽(tīng)/>
聽(tīng)61聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="hitCount"聽(tīng)/>
聽(tīng)62聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="isPublish"聽(tīng)/>
聽(tīng)63聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="isTop"聽(tīng)/>
聽(tīng)64聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="createDate"聽(tīng)/>
聽(tīng)65聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="publishDate"聽(tīng)/>
聽(tīng)66聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="editDate"聽(tīng)/>
聽(tīng)67聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="editUser"聽(tīng)/>
聽(tīng)68聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="addUser"/>
聽(tīng)69聽(tīng)聽(tīng)聽(tīng)聽(tīng)<!--聽(tīng)鏂囩珷綾誨埆聽(tīng)-->
聽(tīng)70聽(tīng)聽(tīng)聽(tīng)聽(tīng)<many-to-one聽(tīng)name="articleSort"聽(tīng)insert="false"聽(tīng)update="false"
聽(tīng)71聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)class聽(tīng)=聽(tīng)"news.entity.ArticleSort"聽(tīng)聽(tīng)column聽(tīng)=聽(tīng)"secondSortID"聽(tīng)/>
聽(tīng)72</class>
聽(tīng)73</hibernate-mapping>
聽(tīng)74
聽(tīng)75
聽(tīng)76<?xml聽(tīng)version="1.0"?>
聽(tīng)77<!DOCTYPE聽(tīng)hibernate-mapping
聽(tīng)78PUBLIC聽(tīng)"-//Hibernate/Hibernate聽(tīng)Mapping聽(tīng)DTD//EN"
聽(tīng)79"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
聽(tīng)80<hibernate-mapping>
聽(tīng)81聽(tīng)<class聽(tīng)name="news.entity.ArticleRemark"聽(tīng)dynamic-insert="true"聽(tīng)dynamic-update="true"聽(tīng)lazy="false"聽(tīng)table="art_remark">
聽(tīng)82聽(tīng)聽(tīng)聽(tīng)聽(tīng)<id聽(tīng)name="id"聽(tīng)type="java.lang.Integer"聽(tīng)unsaved-value="null"聽(tīng)>
聽(tīng)83聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)<column聽(tīng)name="id"聽(tīng)not-null="true"/>
聽(tīng)84聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)<generator聽(tīng)class="native"/>
聽(tīng)85聽(tīng)聽(tīng)聽(tīng)聽(tīng)</id>
聽(tīng)86聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="newsId"聽(tīng)/>
聽(tīng)87聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="userName"聽(tīng)/>
聽(tīng)88聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="title"聽(tīng)/>
聽(tīng)89聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="contact"聽(tīng)/>
聽(tīng)90聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="checkFlag"聽(tīng)/>
聽(tīng)91聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="replyFlag"聽(tīng)/>
聽(tīng)92聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="creDate"聽(tīng)/>
聽(tīng)93聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="checkDate"聽(tīng)/>
聽(tīng)94聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="userIp"聽(tīng)/>
聽(tīng)95聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="checkUserId"聽(tīng)/>
聽(tīng)96聽(tīng)聽(tīng)聽(tīng)聽(tīng)<many-to-one聽(tīng)name="article"聽(tīng)聽(tīng)insert="false"聽(tīng)update="false"聽(tīng)outer-join="false"
聽(tīng)97聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)class聽(tīng)=聽(tīng)"news.entity.Article"
聽(tīng)98聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)column聽(tīng)=聽(tīng)"newsId"聽(tīng)/>
聽(tīng)99聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)
100聽(tīng)聽(tīng)聽(tīng)聽(tīng)<set聽(tīng)name="remarkReply"聽(tīng)inverse="true"聽(tīng)lazy聽(tīng)="true"聽(tīng)order-by="replyTime聽(tīng)desc"聽(tīng)where="聽(tīng)flag=0聽(tīng)"聽(tīng)table="art_remark_reply"聽(tīng)聽(tīng)cascade="all">聽(tīng)
101聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)<key聽(tīng)column="remarkId"/>
102聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)<one-to-many聽(tīng)class="news.entity.ArticleRemarkReply"聽(tīng)聽(tīng)/>
103聽(tīng)聽(tīng)聽(tīng)聽(tīng)</set>
104聽(tīng)聽(tīng)聽(tīng)聽(tīng)
105</class>
106</hibernate-mapping>
107
108
109<?xml聽(tīng)version="1.0"?>
110<!DOCTYPE聽(tīng)hibernate-mapping
111PUBLIC聽(tīng)"-//Hibernate/Hibernate聽(tīng)Mapping聽(tīng)DTD//EN"
112"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
113<hibernate-mapping>
114聽(tīng)<class聽(tīng)name="news.entity.ArticleRemarkReply"聽(tīng)dynamic-insert="true"聽(tīng)dynamic-update="true"聽(tīng)lazy="false"聽(tīng)table="art_remark_reply">
115聽(tīng)聽(tīng)聽(tīng)聽(tīng)<id聽(tīng)name="id"聽(tīng)type="java.lang.Integer"聽(tīng)unsaved-value="null"聽(tīng)>
116聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)<column聽(tīng)name="id"聽(tīng)not-null="true"/>
117聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)<generator聽(tīng)class="native"/>
118聽(tīng)聽(tīng)聽(tīng)聽(tīng)</id>
119聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="remarkId"聽(tīng)/>
120聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="content"聽(tīng)/>
121聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="flag"聽(tīng)/>
122聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="replyDate"聽(tīng)/>
123聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="userName"聽(tīng)/>
124聽(tīng)聽(tīng)聽(tīng)聽(tīng)<property聽(tīng)name="userID"聽(tīng)/>
125</class>
126</hibernate-mapping>


crazy 2007-09-07 10:09 鍙戣〃璇勮
]]>
tomcat鏁版嵁婧愮殑閰嶇疆http://www.tkk7.com/wufalong/articles/142220.htmlcrazycrazyMon, 03 Sep 2007 02:40:00 GMThttp://www.tkk7.com/wufalong/articles/142220.htmlhttp://www.tkk7.com/wufalong/comments/142220.htmlhttp://www.tkk7.com/wufalong/articles/142220.html#Feedback0http://www.tkk7.com/wufalong/comments/commentRss/142220.htmlhttp://www.tkk7.com/wufalong/services/trackbacks/142220.html 聽(tīng)1 < Resource
聽(tīng)2 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) name ="jdbc/test"
聽(tīng)3 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)type ="javax.sql.DataSource"
聽(tīng)4 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)password ="123"
聽(tīng)5 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)driverClassName ="com.mysql.jdbc.Driver"
聽(tīng)6 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)maxIdle ="200"
聽(tīng)7 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)maxWait ="5000"
聽(tīng)8 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)username ="root"
聽(tīng)9 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)url ="jdbc:mysql://192.168.1.11/test?zeroDateTimeBehavior=convertToNull"
10 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)maxActive ="400" />
11
12 < Context聽(tīng) path ="/spring" 聽(tīng)docBase ="E:\eclipse\readme\springtest\web"
13 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)debug ="5" 聽(tīng)reloadable ="false" 聽(tīng)crossContext ="true" >
14 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) < ResourceLink聽(tīng) global ="jdbc/test" 聽(tīng)name ="jdbc/test" 聽(tīng)type ="javax.sql.DataSource" /> 聽(tīng)聽(tīng)聽(tīng)聽(tīng)
15 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) </ Context >

crazy 2007-09-03 10:40 鍙戣〃璇勮
]]>
hibernate.cfg.xml鐨勯厤緗?/title><link>http://www.tkk7.com/wufalong/articles/142213.html</link><dc:creator>crazy</dc:creator><author>crazy</author><pubDate>Mon, 03 Sep 2007 02:34:00 GMT</pubDate><guid>http://www.tkk7.com/wufalong/articles/142213.html</guid><wfw:comment>http://www.tkk7.com/wufalong/comments/142213.html</wfw:comment><comments>http://www.tkk7.com/wufalong/articles/142213.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/wufalong/comments/commentRss/142213.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/wufalong/services/trackbacks/142213.html</trackback:ping><description><![CDATA[ <p>聽(tīng)</p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <span style="COLOR: #008080">聽(tīng)1</span> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> <span style="COLOR: #0000ff"><?</span> <span style="COLOR: #ff00ff">xml聽(tīng)version='1.0'聽(tīng)encoding='utf-8'</span> <span style="COLOR: #0000ff">?></span> <span style="COLOR: #000000"> <br /> </span> <span style="COLOR: #008080">聽(tīng)2</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> </span> <span style="COLOR: #0000ff"><!</span> <span style="COLOR: #ff00ff">DOCTYPE聽(tīng)hibernate-configuration聽(tīng)PUBLIC<br /></span> <span style="COLOR: #008080">聽(tīng)3</span> <span style="COLOR: #ff00ff"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)"-//Hibernate/Hibernate聽(tīng)Configuration聽(tīng)DTD//EN"<br /></span> <span style="COLOR: #008080">聽(tīng)4</span> <span style="COLOR: #ff00ff"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"</span> <span style="COLOR: #0000ff">></span> <span style="COLOR: #000000">聽(tīng)<br /></span> <span style="COLOR: #008080">聽(tīng)5</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)<br /></span> <span style="COLOR: #008080">聽(tīng)6</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)<br /></span> <span style="COLOR: #008080">聽(tīng)7</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> </span> <span style="COLOR: #0000ff"><</span> <span style="COLOR: #800000">hibernate-configuration</span> <span style="COLOR: #0000ff">></span> <span style="COLOR: #000000"> <br /> </span> <span style="COLOR: #008080">聽(tīng)8</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">聽(tīng)9</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> </span> <span style="COLOR: #0000ff"><</span> <span style="COLOR: #800000">session-factory</span> <span style="COLOR: #0000ff">></span> <span style="COLOR: #000000"> <br /> </span> <span style="COLOR: #008080">10</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">11</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽(tīng)聽(tīng)聽(tīng)聽(tīng)</span> <span style="COLOR: #0000ff"><</span> <span style="COLOR: #800000">property聽(tīng)</span> <span style="COLOR: #ff0000">name</span> <span style="COLOR: #0000ff">="connection.datasource"</span> <span style="COLOR: #0000ff">></span> <span style="COLOR: #000000">java:comp/env/jdbc/test</span> <span style="COLOR: #0000ff"></</span> <span style="COLOR: #800000">property</span> <span style="COLOR: #0000ff">></span> <span style="COLOR: #000000"> <br /> </span> <span style="COLOR: #008080">12</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽(tīng)聽(tīng)聽(tīng)聽(tīng)</span> <span style="COLOR: #0000ff"><</span> <span style="COLOR: #800000">property聽(tīng)</span> <span style="COLOR: #ff0000">name</span> <span style="COLOR: #0000ff">="show_sql"</span> <span style="COLOR: #0000ff">></span> <span style="COLOR: #000000">true</span> <span style="COLOR: #0000ff"></</span> <span style="COLOR: #800000">property</span> <span style="COLOR: #0000ff">></span> <span style="COLOR: #000000"> <br /> </span> <span style="COLOR: #008080">13</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽(tīng)聽(tīng)聽(tīng)聽(tīng)</span> <span style="COLOR: #0000ff"><</span> <span style="COLOR: #800000">property聽(tīng)</span> <span style="COLOR: #ff0000">name</span> <span style="COLOR: #0000ff">="dialect"</span> <span style="COLOR: #0000ff">></span> <span style="COLOR: #000000">org.hibernate.dialect.SQLServerDialect</span> <span style="COLOR: #0000ff"></</span> <span style="COLOR: #800000">property</span> <span style="COLOR: #0000ff">></span> <span style="COLOR: #000000"> <br /> </span> <span style="COLOR: #008080">14</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽(tīng)聽(tīng)聽(tīng)聽(tīng)</span> <span style="COLOR: #0000ff"><</span> <span style="COLOR: #800000">property聽(tīng)</span> <span style="COLOR: #ff0000">name</span> <span style="COLOR: #0000ff">="dialect"</span> <span style="COLOR: #0000ff">></span> <span style="COLOR: #000000">org.hibernate.dialect.MySQLDialect</span> <span style="COLOR: #0000ff"></</span> <span style="COLOR: #800000">property</span> <span style="COLOR: #0000ff">></span> <span style="COLOR: #000000"> <br /> </span> <span style="COLOR: #008080">15</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽(tīng)聽(tīng)聽(tīng)聽(tīng)<br /></span> <span style="COLOR: #008080">16</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽(tīng)聽(tīng)聽(tīng)聽(tīng)</span> <span style="COLOR: #0000ff"><</span> <span style="COLOR: #800000">mapping聽(tīng)</span> <span style="COLOR: #ff0000">resource</span> <span style="COLOR: #0000ff">="test/entity/AuthCode.hbm.xml"</span> <span style="COLOR: #0000ff">/></span> <span style="COLOR: #000000"> <br /> </span> <span style="COLOR: #008080">17</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽(tīng)聽(tīng)聽(tīng)聽(tīng)<br /></span> <span style="COLOR: #008080">18</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> </span> <span style="COLOR: #0000ff"></</span> <span style="COLOR: #800000">session-factory</span> <span style="COLOR: #0000ff">></span> <span style="COLOR: #000000"> <br /> </span> <span style="COLOR: #008080">19</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> <br /> </span> <span style="COLOR: #008080">20</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> </span> <span style="COLOR: #0000ff"></</span> <span style="COLOR: #800000">hibernate-configuration</span> <span style="COLOR: #0000ff">></span> </div> <img src ="http://www.tkk7.com/wufalong/aggbug/142213.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/wufalong/" target="_blank">crazy</a> 2007-09-03 10:34 <a href="http://www.tkk7.com/wufalong/articles/142213.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>hibernate鐨凷essionManager http://www.tkk7.com/wufalong/articles/142186.htmlcrazycrazyMon, 03 Sep 2007 01:23:00 GMThttp://www.tkk7.com/wufalong/articles/142186.htmlhttp://www.tkk7.com/wufalong/comments/142186.htmlhttp://www.tkk7.com/wufalong/articles/142186.html#Feedback0http://www.tkk7.com/wufalong/comments/commentRss/142186.htmlhttp://www.tkk7.com/wufalong/services/trackbacks/142186.html 聽(tīng)

聽(tīng)1 import 聽(tīng)org.apache.commons.logging.Log;
聽(tīng)2 import 聽(tīng)org.apache.commons.logging.LogFactory;
聽(tīng)3 import 聽(tīng)org.hibernate.FlushMode;
聽(tīng)4 import 聽(tīng)org.hibernate.HibernateException;
聽(tīng)5 import 聽(tīng)org.hibernate.Session;
聽(tīng)6 import 聽(tīng)org.hibernate.SessionFactory;
聽(tīng)7 import 聽(tīng)org.hibernate.Transaction;
聽(tīng)8 import 聽(tīng)org.hibernate.cfg.Configuration;
聽(tīng)9
10
11
12 public 聽(tīng) class 聽(tīng)SessionManager聽(tīng) {
13 聽(tīng)聽(tīng)聽(tīng)聽(tīng) private 聽(tīng) static 聽(tīng)Log聽(tīng)log聽(tīng) = 聽(tīng)LogFactory.getLog(SessionManager. class );
14 聽(tīng)聽(tīng)聽(tīng)聽(tīng) private 聽(tīng) static 聽(tīng) final 聽(tīng)SessionFactory聽(tīng)sessionFactory;
15 聽(tīng)聽(tīng)聽(tīng)聽(tīng) /** 闈?rùn)鎬佸潡錛氬垱寤簊ession聽(tīng)factory */
16 聽(tīng)聽(tīng)聽(tīng)聽(tīng) static 聽(tīng) {
17 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) try 聽(tīng) {
18 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)System.out.println( " 鏁版嵁鏄犲皠鍒濆鍖?img src="http://www.tkk7.com/images/dot.gif" />begin " );
19 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)Configuration聽(tīng)configure聽(tīng) = 聽(tīng) new 聽(tīng)Configuration().configure();
20 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)sessionFactory聽(tīng) = configure.buildSessionFactory();
21 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) /* URL聽(tīng)configFileURL聽(tīng)=
22 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)SessionManager.class.getResource("/hibernate.cfg.xml");
23 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)Configuration聽(tīng)configure聽(tīng)=聽(tīng)(new聽(tīng)Configuration()).configure(configFileURL); */

24 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)System.out.println( " 鏁版嵁鏄犲皠鍒濆鍖?img src="http://www.tkk7.com/images/dot.gif" />end " );
25 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)}
聽(tīng) catch 聽(tīng)(Throwable聽(tīng)ex)聽(tīng) {
26 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)log.error( " Initial聽(tīng)SessionFactory聽(tīng)creation聽(tīng)failed. " ,聽(tīng)ex);
27 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) throw 聽(tīng) new 聽(tīng)ExceptionInInitializerError(ex);
28 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)}

29 聽(tīng)聽(tīng)聽(tīng)聽(tīng)}

30 聽(tīng)聽(tīng)聽(tīng)聽(tīng) /** 鑾峰彇褰撳墠綰跨▼鐨剆ession瀵硅薄 */
31 聽(tīng)聽(tīng)聽(tīng)聽(tīng) public 聽(tīng) static 聽(tīng)Session聽(tīng)currentSession()聽(tīng) throws 聽(tīng)HibernateException聽(tīng) {
32 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)Session聽(tīng)s聽(tīng) = 聽(tīng)sessionFactory.openSession();
33 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)s.setFlushMode(FlushMode.NEVER);
34 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) return 聽(tīng)s;
35 聽(tīng)聽(tīng)聽(tīng)聽(tīng)}

36 聽(tīng)聽(tīng)聽(tīng)聽(tīng) public 聽(tīng) static 聽(tīng)Session聽(tīng)currentSessionFlush()聽(tīng) throws 聽(tīng)HibernateException聽(tīng) {
37 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)Session聽(tīng)s聽(tīng) = 聽(tīng)sessionFactory.openSession();
38 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)s.setFlushMode(FlushMode.AUTO);
39 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) return 聽(tīng)s;
40 聽(tīng)聽(tīng)聽(tīng)聽(tīng)}

41 聽(tīng)聽(tīng)聽(tīng)聽(tīng) /** 鍏抽棴褰撳墠綰跨▼鎵鍦ㄧ殑session瀵硅薄 */
42 聽(tīng)聽(tīng)聽(tīng)聽(tīng) public 聽(tīng) static 聽(tīng) void 聽(tīng)closeSession(Session聽(tīng)s)聽(tīng) throws 聽(tīng)HibernateException聽(tīng) {
43 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) if 聽(tīng)(s聽(tīng) != 聽(tīng) null ) {
44 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)s.close();
45 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)}

46 聽(tīng)聽(tīng)聽(tīng)聽(tīng)}

47 聽(tīng)聽(tīng)聽(tīng)聽(tīng) public 聽(tīng) static 聽(tīng)SessionFactory聽(tīng)getSessionFactory()聽(tīng) {
48 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) if (sessionFactory != null ) {
49 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) return 聽(tīng)sessionFactory;
50 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)}

51 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) else {
52 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)System.out.println( " 鏃犳晥鐨刦actiory " );
53 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng) return 聽(tīng) null ;
54 聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)聽(tīng)}

55 聽(tīng)聽(tīng)聽(tīng)聽(tīng)}

56 }

57


crazy 2007-09-03 09:23 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 日本激情猛烈在线看免费观看| 亚洲精品免费在线视频| 亚洲精品无码不卡| 亚洲中文无码mv| 久久久精品国产亚洲成人满18免费网站 | 亚洲熟妇av一区二区三区| 久久精品国产亚洲AV无码偷窥 | 国产亚洲综合精品一区二区三区| 国产在线观看免费av站| 青娱乐免费在线视频| 天堂亚洲免费视频| 99在线热视频只有精品免费| 日本人的色道www免费一区| 亚洲gv白嫩小受在线观看| 亚洲欧美成aⅴ人在线观看| 花蝴蝶免费视频在线观看高清版| 嫩草影院免费观看| 亚洲AV无码久久精品色欲| 亚洲AV色无码乱码在线观看| 久久久久久久99精品免费| 免费国产不卡午夜福在线| 亚洲第一页在线播放| 亚洲免费在线观看| 成年轻人网站色免费看| 亚洲国产精品久久久久婷婷软件 | 啦啦啦完整版免费视频在线观看 | 亚洲国产精品自产在线播放| 亚洲国产综合第一精品小说| 丝袜捆绑调教视频免费区| 国产高清视频在线免费观看| 老色鬼久久亚洲AV综合| jizz在线免费观看| 日本免费人成黄页网观看视频| 老司机亚洲精品影院| 两个人日本WWW免费版| 国产特级淫片免费看| 亚洲国产精品一区二区久| 中文字幕的电影免费网站| 成人精品综合免费视频| 3344永久在线观看视频免费首页| 色吊丝最新永久免费观看网站 |