锘??xml version="1.0" encoding="utf-8" standalone="yes"?><?xml聽version="1.0"?>
聽聽2<!DOCTYPE聽hibernate-mapping
聽聽3PUBLIC聽"-//Hibernate/Hibernate聽Mapping聽DTD//EN"
聽聽4"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
聽聽5<hibernate-mapping>
聽聽6聽<class聽name="news.entity.ArticleSort"聽dynamic-insert="true"聽dynamic-update="true"聽聽table="art_sort">
聽聽7聽聽聽聽<id聽name="id"聽type="java.lang.Integer"聽unsaved-value="null"聽>
聽聽8聽聽聽聽聽聽聽聽<column聽name="id"聽not-null="true"/>
聽聽9聽聽聽聽聽聽聽聽<generator聽class="native"/>
聽10聽聽聽聽</id>
聽11聽聽聽聽<property聽name="sortName"聽/>
聽12聽聽聽聽<property聽name="parentID"聽/>
聽13聽聽聽聽<property聽name="createDate"聽/>
聽14聽聽聽聽<property聽name="editDate"聽/>
聽15聽聽聽聽<property聽name="orderBy"聽/>
聽16聽聽聽聽<property聽name="descript"聽/>
聽17聽聽聽聽<property聽name="editUser"聽/>
聽18聽聽聽聽<property聽name="sortType"聽/>
聽19聽聽聽聽<property聽name="isOpen"聽/>
聽20聽聽聽聽
聽21聽聽聽聽<!--聽灝忕被瀵瑰簲鐨勬枃绔犅?/span>-->
聽22聽聽聽聽<set聽name="article"聽inverse="false"聽lazy聽="true"聽order-by="聽id聽"聽cascade="none">聽
聽23聽聽聽聽聽聽聽<key聽column="smallSortID"/>
聽24聽聽聽聽聽聽聽<one-to-many聽class="news.entity.Article"聽聽/>
聽25聽聽聽聽</set>
聽26聽聽聽聽
聽27聽聽聽聽<!--聽灝忕被瀵瑰簲鐨勫ぇ綾宦?/span>-->
聽28聽聽聽聽<many-to-one聽聽insert="false"聽update="false"聽name="parentBigSort"聽
聽29聽聽聽聽聽聽聽聽聽聽聽聽class聽=聽"news.entity.ArticleSort"
聽30聽聽聽聽聽聽聽聽聽聽聽聽column聽=聽"parentID"聽/>
聽31聽聽聽聽聽聽聽聽聽聽聽聽
聽32聽聽聽聽聽<!--聽澶х被瀵瑰簲灝忕被聽-->
聽33聽聽聽聽聽<set聽name="smallSortSet"聽inverse="false"聽lazy聽="true"聽order-by="聽id聽"聽cascade="none">聽
聽34聽聽聽聽聽聽聽<key聽column="parentID"/>
聽35聽聽聽聽聽聽聽<one-to-many聽class="news.entity.ArticleSort"聽聽/>
聽36聽聽聽聽</set>
聽37</class>
聽38</hibernate-mapping>
聽39
聽40
聽41<?xml聽version="1.0"?>
聽42<!DOCTYPE聽hibernate-mapping
聽43PUBLIC聽"-//Hibernate/Hibernate聽Mapping聽DTD//EN"
聽44"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
聽45<hibernate-mapping>
聽46聽<class聽name="news.entity.Article"聽dynamic-insert="true"聽dynamic-update="true"聽lazy="false"聽table="art_news">
聽47聽聽聽聽<id聽name="id"聽type="java.lang.Integer"聽unsaved-value="null"聽>
聽48聽聽聽聽聽聽聽聽<column聽name="id"聽not-null="true"/>
聽49聽聽聽聽聽聽聽聽<generator聽class="native"/>
聽50聽聽聽聽</id>
聽51聽聽聽聽<property聽name="title"聽/>
聽52聽聽聽聽<property聽name="subTitle"聽/>
聽53聽聽聽聽<property聽name="author"聽/>
聽54聽聽聽聽<property聽name="source"聽/>
聽55聽聽聽聽<property聽name="url"聽/>
聽56聽聽聽聽<property聽name="picUrl"聽/>
聽57聽聽聽聽<property聽name="bigSortID"聽/>
聽58聽聽聽聽<property聽name="secondSortID"聽/>
聽59聽聽聽聽<property聽name="smallSortID"聽/>
聽60聽聽聽聽<property聽name="content"聽/>
聽61聽聽聽聽<property聽name="hitCount"聽/>
聽62聽聽聽聽<property聽name="isPublish"聽/>
聽63聽聽聽聽<property聽name="isTop"聽/>
聽64聽聽聽聽<property聽name="createDate"聽/>
聽65聽聽聽聽<property聽name="publishDate"聽/>
聽66聽聽聽聽<property聽name="editDate"聽/>
聽67聽聽聽聽<property聽name="editUser"聽/>
聽68聽聽聽聽<property聽name="addUser"/>
聽69聽聽聽聽<!--聽鏂囩珷綾誨埆聽-->
聽70聽聽聽聽<many-to-one聽name="articleSort"聽insert="false"聽update="false"
聽71聽聽聽聽聽聽聽聽class聽=聽"news.entity.ArticleSort"聽聽column聽=聽"secondSortID"聽/>
聽72</class>
聽73</hibernate-mapping>
聽74
聽75
聽76<?xml聽version="1.0"?>
聽77<!DOCTYPE聽hibernate-mapping
聽78PUBLIC聽"-//Hibernate/Hibernate聽Mapping聽DTD//EN"
聽79"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
聽80<hibernate-mapping>
聽81聽<class聽name="news.entity.ArticleRemark"聽dynamic-insert="true"聽dynamic-update="true"聽lazy="false"聽table="art_remark">
聽82聽聽聽聽<id聽name="id"聽type="java.lang.Integer"聽unsaved-value="null"聽>
聽83聽聽聽聽聽聽聽聽<column聽name="id"聽not-null="true"/>
聽84聽聽聽聽聽聽聽聽<generator聽class="native"/>
聽85聽聽聽聽</id>
聽86聽聽聽聽<property聽name="newsId"聽/>
聽87聽聽聽聽<property聽name="userName"聽/>
聽88聽聽聽聽<property聽name="title"聽/>
聽89聽聽聽聽<property聽name="contact"聽/>
聽90聽聽聽聽<property聽name="checkFlag"聽/>
聽91聽聽聽聽<property聽name="replyFlag"聽/>
聽92聽聽聽聽<property聽name="creDate"聽/>
聽93聽聽聽聽<property聽name="checkDate"聽/>
聽94聽聽聽聽<property聽name="userIp"聽/>
聽95聽聽聽聽<property聽name="checkUserId"聽/>
聽96聽聽聽聽<many-to-one聽name="article"聽聽insert="false"聽update="false"聽outer-join="false"
聽97聽聽聽聽聽聽聽聽聽聽聽聽class聽=聽"news.entity.Article"
聽98聽聽聽聽聽聽聽聽聽聽聽聽column聽=聽"newsId"聽/>
聽99聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
100聽聽聽聽<set聽name="remarkReply"聽inverse="true"聽lazy聽="true"聽order-by="replyTime聽desc"聽where="聽flag=0聽"聽table="art_remark_reply"聽聽cascade="all">聽
101聽聽聽聽聽聽聽<key聽column="remarkId"/>
102聽聽聽聽聽聽聽<one-to-many聽class="news.entity.ArticleRemarkReply"聽聽/>
103聽聽聽聽</set>
104聽聽聽聽
105</class>
106</hibernate-mapping>
107
108
109<?xml聽version="1.0"?>
110<!DOCTYPE聽hibernate-mapping
111PUBLIC聽"-//Hibernate/Hibernate聽Mapping聽DTD//EN"
112"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
113<hibernate-mapping>
114聽<class聽name="news.entity.ArticleRemarkReply"聽dynamic-insert="true"聽dynamic-update="true"聽lazy="false"聽table="art_remark_reply">
115聽聽聽聽<id聽name="id"聽type="java.lang.Integer"聽unsaved-value="null"聽>
116聽聽聽聽聽聽聽聽<column聽name="id"聽not-null="true"/>
117聽聽聽聽聽聽聽聽<generator聽class="native"/>
118聽聽聽聽</id>
119聽聽聽聽<property聽name="remarkId"聽/>
120聽聽聽聽<property聽name="content"聽/>
121聽聽聽聽<property聽name="flag"聽/>
122聽聽聽聽<property聽name="replyDate"聽/>
123聽聽聽聽<property聽name="userName"聽/>
124聽聽聽聽<property聽name="userID"聽/>
125</class>
126</hibernate-mapping>
]]>
<
Resource
聽2
聽聽聽聽聽聽聽聽
name
="jdbc/test"
聽3
聽聽聽聽聽聽聽聽type
="javax.sql.DataSource"
聽4
聽聽聽聽聽聽聽聽password
="123"
聽5
聽聽聽聽聽聽聽聽driverClassName
="com.mysql.jdbc.Driver"
聽6
聽聽聽聽聽聽聽聽maxIdle
="200"
聽7
聽聽聽聽聽聽聽聽maxWait
="5000"
聽8
聽聽聽聽聽聽聽聽username
="root"
聽9
聽聽聽聽聽聽聽聽url
="jdbc:mysql://192.168.1.11/test?zeroDateTimeBehavior=convertToNull"
10
聽聽聽聽聽聽聽聽maxActive
="400"
/>
11
12
<
Context聽
path
="/spring"
聽docBase
="E:\eclipse\readme\springtest\web"
13
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽debug
="5"
聽reloadable
="false"
聽crossContext
="true"
>
14
聽聽聽聽聽聽聽聽聽聽聽聽
<
ResourceLink聽
global
="jdbc/test"
聽name
="jdbc/test"
聽type
="javax.sql.DataSource"
/>
聽聽聽聽
15
聽聽聽聽聽聽聽聽聽聽聽聽
</
Context
>
]]>