首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

Spring调整hibernate配置模版

2012-09-11 
Spring整合hibernate配置模版下面是用一个具体例子写的模版(支持annotation的配置),需要时稍微改改就行:被

Spring整合hibernate配置模版
        下面是用一个具体例子写的模版(支持annotation的配置),需要时稍微改改就行:



        被注释掉的部分是xxx.hbm.xml配置文件的设置。但是用于annotation的配置同样也可以用与hbm文件配置,因为org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean继承了org.springframework.orm.hibernate3.LocalSessionFactoryBean。

热点排行