admin
2021-02-06 e2c6372f29ae0a93d9f672ffad4613581ba3e201
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
          "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
          "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<!-- Generated by MyEclipse Hibernate Tools. -->
<hibernate-configuration>
 
    <session-factory>
        <property name="javax.persistence.validation.mode">none</property>
        <property name="dialect">
            org.hibernate.dialect.MySQLDialect
        </property>
        <!-- rdsswi5qt80crnoaqfxdfpublic.mysql.rds.aliyuncs.com rdsswi5qt80crnoaqfxdf.mysql.rds.aliyuncs.com -->
        <property name="connection.url">
            jdbc:mysql://rdsswi5qt80crnoaqfxdfpublic.mysql.rds.aliyuncs.com:3306/new_beibei_video
        </property>
        <property name="connection.username">wk</property>
        <property name="connection.password">weikou2014</property>
        <property name="connection.driver_class">
            com.mysql.jdbc.Driver
        </property>
        <property name="dialect">
            org.hibernate.dialect.MySQLDialect
        </property>
 
        <property name="hibernate.hbm2ddl.auto">none</property>
 
        <!-- 开启二级缓存 -->
        <!-- <property name="hibernate.cache.use_second_level_cache">true</property> -->
        <!-- 二级缓存的提供类 在hibernate4.0版本以后我们都是配置这个属性来指定二级缓存的提供类 -->
        <!-- <property name="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.EhCacheRegionFactory</property> -->
        <!-- 二级缓存配置文件的位置 -->
        <!-- <property name="hibernate.cache.provider_configuration_file_resource_path">ehcache.xml</property> -->
 
        <!-- 开启查询缓存 -->
        <!-- <property name="hibernate.cache.use_query_cache">true</property> -->
 
 
        <!-- C3P0 连接池的配置 -->
        <property name="connection.provider_class">
            org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider
        </property>
        <property name="hibernate.c3p0.idle_test_period">120</property>
        <property name="hibernate.c3p0.max_size">180</property>
        <property name="hibernate.c3p0.max_statements">100</property>
        <property name="hibernate.c3p0.min_size">3</property>
        <property name="hibernate.c3p0.timeout">120</property>
        <property name="hibernate.c3p0.preferredTestQuery">select 1 from test</property>
        <property name="hibernate.c3p0.testConnectionOnCheckout">true</property>
        <property name="hibernate.c3p0.acquire_increment">3</property>
        <property name="hibernate.c3p0.validate">false</property>
        <property name="c3p0.initialPoolSize">30</property>
        <!--连接关闭时默认将所有未提交的操作回滚。Default: false -->
        <property name="autoCommitOnClose">false</property>
        <property name="automaticTestTable">test</property>
 
 
 
        <property name="hibernate.current_session_context_class">org.springframework.orm.hibernate4.SpringSessionContext</property>
 
 
 
        <!-- 打印sql语句 -->
        <property name="show_sql">true</property>
 
        <!-- 映射文件配置 -->
        <mapping resource="com/newvideo/domain/AdCancelRule.hbm.xml" />
        <mapping resource="com/newvideo/domain/AdminInfo.hbm.xml" />
        <mapping resource="com/newvideo/domain/AdTag.hbm.xml" />
        <mapping resource="com/newvideo/domain/AdType.hbm.xml" />
        <mapping resource="com/newvideo/domain/Advice.hbm.xml" />
        <mapping resource="com/newvideo/domain/Collection.hbm.xml" />
        <mapping resource="com/newvideo/domain/Config.hbm.xml" />
        <mapping resource="com/newvideo/domain/GetScoreCollect.hbm.xml" />
        <mapping resource="com/newvideo/domain/GetScoreOpen.hbm.xml" />
        <mapping resource="com/newvideo/domain/GetScoreRule.hbm.xml" />
        <mapping resource="com/newvideo/domain/GetScoreSaveVideo.hbm.xml" />
        <mapping resource="com/newvideo/domain/GetScoreShare.hbm.xml" />
        <mapping resource="com/newvideo/domain/GetScoreWatch.hbm.xml" />
        <mapping resource="com/newvideo/domain/GetScoreContinueWatch.hbm.xml" />
        <mapping resource="com/newvideo/domain/GetScoreEvaluate.hbm.xml" />
        <mapping resource="com/newvideo/domain/GetScoreHistory.hbm.xml" />
        <mapping resource="com/newvideo/domain/HomeAd.hbm.xml" />
        <mapping resource="com/newvideo/domain/HomeType.hbm.xml" />
        <mapping resource="com/newvideo/domain/HomeVideo.hbm.xml" />
        <mapping resource="com/newvideo/domain/HotSearch.hbm.xml" />
        <mapping resource="com/newvideo/domain/HotStar.hbm.xml" />
        <mapping resource="com/newvideo/domain/HotStarVideo.hbm.xml" />
        <mapping resource="com/newvideo/domain/SearchHistory.hbm.xml" />
        <mapping resource="com/newvideo/domain/ScoreHistory.hbm.xml" />
        <mapping resource="com/newvideo/domain/SystemInfo.hbm.xml" />
        <mapping resource="com/newvideo/domain/UserInfo.hbm.xml" />
        <mapping resource="com/newvideo/domain/UseScoreHistory.hbm.xml" />
        <mapping resource="com/newvideo/domain/VideoDetailInfo.hbm.xml" />
        <mapping resource="com/newvideo/domain/VideoInfo.hbm.xml" />
        <mapping resource="com/newvideo/domain/VideoResource.hbm.xml" />
        <mapping resource="com/newvideo/domain/VideoScoreHistory.hbm.xml" />
        <mapping resource="com/newvideo/domain/VideoType.hbm.xml" />
        <mapping resource="com/newvideo/domain/VideoUrl.hbm.xml" />
        <mapping resource="com/newvideo/domain/UserBanner.hbm.xml" />
        <mapping resource="com/newvideo/domain/WXAd.hbm.xml" />
        <mapping resource="com/newvideo/domain/WXStatistics.hbm.xml" />
        <mapping resource="com/newvideo/domain/ShareContent.hbm.xml" />
        <mapping resource="com/newvideo/domain/DetailSystem.hbm.xml" />
        <mapping resource="com/newvideo/domain/LeShiAccount.hbm.xml" />
        <mapping resource="com/newvideo/domain/LeShiUrl.hbm.xml" />
        <mapping resource="com/newvideo/domain/VideoPlayError.hbm.xml" />
        <mapping resource="com/newvideo/domain/LeShiWatch.hbm.xml" />
        <mapping resource="com/newvideo/domain/LeShiAccountVideo.hbm.xml" />
        <mapping resource="com/newvideo/domain/DeviceInfo.hbm.xml" />
        <mapping resource="com/newvideo/domain/LeShiDownLoad.hbm.xml" />
        <mapping resource="com/newvideo/domain/LeShiWatchCopy.hbm.xml" />
        <mapping resource="com/newvideo/domain/HomeNotice.hbm.xml" />
        <mapping resource="com/newvideo/domain/WeiXinInfo.hbm.xml" />
        <mapping resource="com/newvideo/domain/WeiXinImage.hbm.xml" />
        <mapping resource="com/newvideo/domain/ImageInfo.hbm.xml" />
        <mapping resource="com/newvideo/domain/LeShiRegister.hbm.xml" />
        <mapping resource="com/newvideo/domain/KKInstall.hbm.xml" />
        <mapping resource="com/newvideo/domain/HotVideoType.hbm.xml" />
        <mapping resource="com/newvideo/domain/VideoTypeStatistics.hbm.xml" />
        <mapping resource="com/newvideo/domain/VideoIntersection.hbm.xml" />
        <mapping resource="com/newvideo/domain/VideoIntersectionVideo.hbm.xml" />
        <mapping resource="com/newvideo/domain/PPTVAccount.hbm.xml" />
        <mapping resource="com/newvideo/domain/PPTVVideo.hbm.xml" />
        <mapping resource="com/newvideo/domain/PPTVVideo2Url.hbm.xml" />
        <mapping resource="com/newvideo/domain/FengXingUrlId.hbm.xml" />
        <mapping resource="com/newvideo/domain/HuaShuUrlId.hbm.xml" />
        <mapping resource="com/newvideo/domain/MangGuoUrlId.hbm.xml" />
        <mapping resource="com/newvideo/domain/SoHuVideoUrlId.hbm.xml" />
        <mapping resource="com/newvideo/domain/VideoBanQuan.hbm.xml" />
        <mapping resource="com/newvideo/domain/VideoBanQuanVideo.hbm.xml" />
        <mapping resource="com/newvideo/domain/RecommendAd.hbm.xml" />
        <mapping resource="com/newvideo/domain/SuperHomeType.hbm.xml" />
        <mapping resource="com/newvideo/domain/SuperHomeAd.hbm.xml" />
        <mapping resource="com/newvideo/domain/LeShiMovieVip.hbm.xml" />
        <mapping resource="com/newvideo/domain/SuperVideoType.hbm.xml" />
        <mapping resource="com/newvideo/domain/SuperHotType.hbm.xml" />
        <mapping resource="com/newvideo/domain/SuperUserBanner.hbm.xml" />
        <mapping resource="com/newvideo/domain/SuperRecommendAd.hbm.xml" />
        <mapping resource="com/newvideo/domain/SuperHotSearch.hbm.xml" />
        <mapping resource="com/newvideo/domain/SuperHomeNotice.hbm.xml" />
        <mapping resource="com/newvideo/domain/LeShiUrlIds.hbm.xml" />
        <mapping resource="com/newvideo/domain/AcfunUrlId.hbm.xml" />
        <mapping resource="com/newvideo/domain/AcfunVideoUrl.hbm.xml" />
        <mapping resource="com/newvideo/domain/Comment.hbm.xml" />
        <mapping resource="com/newvideo/domain/Comment2.hbm.xml" />
        <mapping resource="com/newvideo/domain/YSDQVideoUrl.hbm.xml" />
        <mapping resource="com/newvideo/domain/ad/YouDaoStatistics.hbm.xml" />
        <mapping resource="com/newvideo/domain/BiliBiliUrlId.hbm.xml" />
        <mapping resource="com/newvideo/domain/Contact.hbm.xml" />
 
        <mapping resource="com/newvideo/domain/YouKuVideoUrl.hbm.xml" />
        <mapping resource="com/newvideo/domain/VideoPlayStatistics.hbm.xml" />
        <mapping resource="com/newvideo/domain/HomeTypeItem.hbm.xml" />
        <mapping resource="com/newvideo/domain/SuperHotStar.hbm.xml" />
        <mapping resource="com/newvideo/domain/LoginUser.hbm.xml" />
        <mapping resource="com/newvideo/domain/Attention.hbm.xml" />
        <mapping resource="com/newvideo/domain/WebVideo.hbm.xml" />
 
        <mapping resource="com/newvideo/domain/special/Special.hbm.xml" />
        <mapping resource="com/newvideo/domain/special/SpecialVideo.hbm.xml" />
        <mapping resource="com/newvideo/domain/special/SuperSpecial.hbm.xml" />
 
        <mapping resource="com/newvideo/domain/push/VideoPushHistory.hbm.xml" />
 
        <!-- 推荐 -->
        <mapping
            resource="com/newvideo/domain/recommend/CategoryRecommendVideo.hbm.xml" />
 
        <mapping
            resource="com/newvideo/domain/recommend/CategoryRecommendCacheVideo.hbm.xml" />
 
        <mapping resource="com/newvideo/domain/recommend/AreaVideoCache.hbm.xml" />
 
        <mapping
            resource="com/newvideo/domain/recommend/CategoryRecommendCacheVideoNumber.hbm.xml" />
 
 
 
        <!-- 评论 -->
        <mapping resource="com/newvideo/domain/CommentReply.hbm.xml" />
 
 
        <!-- 直播 -->
        <mapping resource="com/newvideo/zhibo/ljf/entity/LJFLiveData.hbm.xml" />
 
        <mapping resource="com/newvideo/zhibo/entity/ZhiBoStatisticsDetail.hbm.xml" />
        <mapping resource="com/newvideo/zhibo/entity/ZhiBoStatistics.hbm.xml" />
        <mapping resource="com/newvideo/zhibo/entity/LiveType.hbm.xml" />
 
 
        <!-- 下载 -->
        <mapping resource="com/newvideo/domain/DownLoadVideoInfo.hbm.xml" />
        <mapping resource="com/newvideo/domain/DownLoadVersionVideo.hbm.xml" />
        <mapping resource="com/newvideo/domain/DownLoadUserInfo.hbm.xml" />
        <mapping resource="com/newvideo/domain/DownLoadCollect.hbm.xml" />
        <mapping resource="com/newvideo/domain/DownLoadVideoType.hbm.xml" />
        <mapping resource="com/newvideo/domain/DownLoadTypeVideo.hbm.xml" />
        <mapping resource="com/newvideo/domain/DownLoadVideoUrl.hbm.xml" />
 
        <mapping resource="com/newvideo/domain/ResourceVideo.hbm.xml" />
        <mapping resource="com/newvideo/domain/CategoryVideo.hbm.xml" />
        <mapping resource="com/newvideo/domain/CategoryContry.hbm.xml" />
 
        <mapping
            resource="com/newvideo/domain/recommend/SuperCategoryRecommendVideo.hbm.xml" />
 
        <!-- 广告 -->
        <mapping resource="com/newvideo/domain/ad/CommonAd.hbm.xml" />
        <mapping resource="com/newvideo/domain/ad/CommonAdStatistics.hbm.xml" />
        <mapping resource="com/newvideo/domain/ad/CommonAdPosition.hbm.xml" />
        <mapping resource="com/newvideo/domain/ad/CommonAdPositionAd.hbm.xml" />
 
        <!-- 新闻阅读 -->
        <mapping resource="com/newvideo/domain/news/News.hbm.xml" />
        <mapping resource="com/newvideo/domain/news/NewsImage.hbm.xml" />
        <mapping resource="com/newvideo/domain/news/NewsType.hbm.xml" />
        <mapping resource="com/newvideo/domain/news/NewsTypeContent.hbm.xml" />
        <mapping resource="com/newvideo/domain/news/FoundNews.hbm.xml" />
        <mapping resource="com/newvideo/domain/news/SuperFoundNrews.hbm.xml" />
 
 
 
        <mapping resource="com/newvideo/domain/juhe/JuHeFilterKey.hbm.xml" />
 
        <!-- 爱奇艺 -->
        <mapping resource="com/newvideo/iqiyi/entity/IqiyiAlbum.hbm.xml" />
        <mapping resource="com/newvideo/iqiyi/entity/IqiyiVideoInfo.hbm.xml" />
        <mapping resource="com/newvideo/iqiyi/entity/VideoIqiyi.hbm.xml" />
 
        <!-- 搜狐 -->
        <mapping resource="com/newvideo/sohu/entity/SoHuAlbum.hbm.xml" />
        <mapping resource="com/newvideo/sohu/entity/SoHuVideo.hbm.xml" />
        <mapping resource="com/newvideo/sohu/entity/VideoSoHu.hbm.xml" />
 
        <!-- 优酷 -->
        <mapping resource="com/newvideo/youku/entity/Program.hbm.xml" />
        <mapping resource="com/newvideo/youku/entity/ProgramVideo.hbm.xml" />
        <mapping resource="com/newvideo/youku/entity/ProgramVideoMap.hbm.xml" />
        <mapping resource="com/newvideo/youku/entity/VideoYouKu.hbm.xml" />
 
 
        <!-- PPTV -->
        <mapping resource="com/newvideo/pptv/entity/PPTVCartoonDetail.hbm.xml" />
        <mapping resource="com/newvideo/pptv/entity/PPTVCartoonVideo.hbm.xml" />
        <mapping resource="com/newvideo/pptv/entity/PPTVMovieVideo.hbm.xml" />
        <mapping resource="com/newvideo/pptv/entity/PPTVShortVideo.hbm.xml" />
        <mapping resource="com/newvideo/pptv/entity/PPTVShowDetail.hbm.xml" />
        <mapping resource="com/newvideo/pptv/entity/PPTVShowVideo.hbm.xml" />
        <mapping resource="com/newvideo/pptv/entity/PPTVTVDetail.hbm.xml" />
        <mapping resource="com/newvideo/pptv/entity/PPTVTVVideo.hbm.xml" />
        <mapping resource="com/newvideo/pptv/entity/VideoPPTV.hbm.xml" />
 
        <!-- 乐视 -->
        <mapping resource="com/newvideo/letv/entity/LeTVAlbum.hbm.xml" />
        <mapping resource="com/newvideo/letv/entity/LeTVAlbumVideo.hbm.xml" />
        <mapping resource="com/newvideo/letv/entity/LeTVVideo.hbm.xml" />
        <mapping resource="com/newvideo/letv/entity/VideoLeTV.hbm.xml" />
 
        <!-- 风行 -->
        <mapping resource="com/newvideo/funtv/entity/FunTVAlbum.hbm.xml" />
        <mapping resource="com/newvideo/funtv/entity/FunTVVideo.hbm.xml" />
        <mapping resource="com/newvideo/funtv/entity/VideoFunTV.hbm.xml" />
        <mapping resource="com/newvideo/funtv/entity/FunTVAlbumVideoMap.hbm.xml" />
 
 
        <!-- 商城相关 -->
 
        <mapping resource="com/newvideo/domain/shop/ShopItemCollect.hbm.xml" />
        <mapping resource="com/newvideo/domain/shop/ShopItemComment.hbm.xml" />
    </session-factory>
 
</hibernate-configuration>