<?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>
|