BlueSpace
思想有多遠,我們就能走多遠!
BlogJava
::
首頁
::
新隨筆
::
聯系
::
聚合
::
管理
posts - 0, comments - 5, trackbacks - 0
<
2025年5月
>
日
一
二
三
四
五
六
27
28
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
7
留言簿
(1)
給我留言
查看公開留言
查看私人留言
我參與的團隊
深圳Java俱樂部(0/0)
文章分類
ajax(1)
hibernate(4)
java(21)
javasrcipt(13)
mysql數據庫(6)
spring
文章檔案
2009年8月 (1)
2009年3月 (2)
2008年10月 (1)
2008年7月 (3)
2008年6月 (11)
2008年3月 (1)
2008年2月 (1)
2007年12月 (11)
2007年11月 (3)
2007年9月 (13)
相冊
my photo
http://www.tkk7.com/beansoft
http://www.tkk7.com/sterning
http://www.tkk7.com/sterning
搜索
最新評論
1.?re: xfire aegis轉
評論內容較長,點擊標題查看
--啊啊啊
2.?re: xfire aegis轉
itn
--吃飯會非常
3.?re: distinct 與 order by
“select * from test group by name”這個SQL語句有問題,執行不了
--didi
4.?re: java讀取excel文件
good,so well,
--1111
5.?re: 正則表達式,不區分大小寫的替換
評論內容較長,點擊標題查看
--新手。
文章系統.Hibernate的一對多,多對一映射
包含4個表,文章分類,文章,文章評論,文章評論回復
文章分為三級目錄,bigSortID,secondSordID,smallSortID
??1
<?
xml?version="1.0"
?>
??2
<!
DOCTYPE?hibernate-mapping
??3
PUBLIC?"-//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
????
<!--
?小類對應的文章?
-->
?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
????
<!--
?小類對應的大類?
-->
?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
?43
PUBLIC?"-//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
?78
PUBLIC?"-//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
111
PUBLIC?"-//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
>
posted on 2007-09-07 10:09
crazy
閱讀(198)
評論(0)
編輯
收藏
所屬分類:
hibernate
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
相關文章:
文章系統.Hibernate的一對多,多對一映射
tomcat數據源的配置
hibernate.cfg.xml的配置
hibernate的SessionManager
Powered by:
BlogJava
Copyright ©2025 crazy
主站蜘蛛池模板:
亚洲A∨午夜成人片精品网站
|
国产精品亚洲A∨天堂不卡
|
四虎免费在线观看
|
久久久综合亚洲色一区二区三区
|
成人免费视频国产
|
亚洲欧洲日本天天堂在线观看
|
亚洲娇小性色xxxx
|
黄色永久免费网站
|
亚洲一级二级三级不卡
|
一区二区三区免费电影
|
免费又黄又爽的视频
|
野花视频在线官网免费1
|
日本免费人成视频播放
|
中中文字幕亚洲无线码
|
在人线av无码免费高潮喷水
|
亚洲制服中文字幕第一区
|
无码国产精品一区二区免费3p
|
在线观看av永久免费
|
亚洲成a人片在线观
|
91香蕉在线观看免费高清
|
久久亚洲国产精品
|
99在线视频免费观看
|
国产精品亚洲A∨天堂不卡
|
久久香蕉国产线看免费
|
亚洲电影国产一区
|
国产1000部成人免费视频
|
久久精品国产亚洲av日韩
|
91禁漫免费进入
|
亚洲va乱码一区二区三区
|
无码国产精品一区二区免费
|
亚洲中文无码亚洲人成影院
|
性感美女视频免费网站午夜
|
亚洲国产日韩a在线播放
|
亚洲高清无码在线观看
|
一个人免费播放在线视频看片
|
亚洲综合无码一区二区
|
国产高清对白在线观看免费91
|
69视频在线观看免费
|
精品亚洲AV无码一区二区
|
狼群影院在线观看免费观看直播
|
噜噜综合亚洲AV中文无码
|