Hibernate 配置文件
<?
xml version="1.0" encoding="utf-8"
?>
<! DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "spring-beans.dtd" >
< beans >
<!-- Oralce -->
< bean id ="dataSource"
class ="org.apache.commons.dbcp.BasicDataSource" >
< property name ="driverClassName"
value ="oracle.jdbc.driver.OracleDriver" />
< property name ="url"
value ="jdbc:oracle:thin:@192.168.2.242:1521:FUTUREDB" />
< property name ="username" value ="YULIN" />
< property name ="password" value ="111111" />
</ bean >
<!-- DB2 -->
<!-- bean id="dataSource"
class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
<property name="driverClassName">
<value>com.ibm.db2.jcc.DB2Driver</value>
</property>
<property name="url">
<value>jdbc:db2://192.168.4.201:50000/FUTUREOA</value>
</property>
<property name="username">
<value>db2admin</value>
</property>
<property name="password">
<value>SXDZZW20061221</value>
</property>
</bean -->
<!-- bean id="dataSource"
class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName">
<value>jdbc/oa</value>
</property>
<property name="resourceRef">
<value>true</value>
</property>
</bean -->
<!-- MySQL
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName">
<value>com.mysql.jdbc.Driver</value>
</property>
<property name="url">
<value>jdbc:mysql://localhost:3306/baojioa?useUnicode=true&characterEncoding=GB2312</value>
</property>
<property name="username">
<value>root</value>
</property>
<property name="password">
<value>mysql</value>
</property>
</bean> -->
< bean id ="sessionFactory"
class ="org.springframework.orm.hibernate3.LocalSessionFactoryBean" >
< property name ="dataSource" >
< ref local ="dataSource" />
</ property >
< property name ="mappingResources" >
< list >
<!-- 档案管理 -->
< value >
com/futuresoftware/oa/pojo/TavArchive.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TavAttach.hbm.xml
</ value >
< value > com/futuresoftware/oa/pojo/TavBox.hbm.xml </ value >
< value >
com/futuresoftware/oa/pojo/TavCause.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TavComefilemethod.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TavInsidelendinfo.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TavLeader.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TavLendapprove.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TavOutlend.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TavQuanzong.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TavSaveperiod.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TavSort.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TavSortinfo.hbm.xml
</ value >
<!-- 引擎开始 -->
< value >
com/futuresoftware/oa/workflow/map/MeetDef.hbm.xml
</ value >
< value >
com/futuresoftware/oa/workflow/map/ProcessDefType.hbm.xml
</ value >
< value >
com/futuresoftware/oa/workflow/map/ProcessDef.hbm.xml
</ value >
< value >
com/futuresoftware/oa/workflow/map/DealType.hbm.xml
</ value >
< value >
com/futuresoftware/oa/workflow/map/ProcessDefSubType.hbm.xml
</ value >
< value >
com/futuresoftware/oa/workflow/map/ActivityDef.hbm.xml
</ value >
< value >
com/futuresoftware/oa/workflow/map/DiversionDef.hbm.xml
</ value >
< value >
com/futuresoftware/oa/workflow/map/ActivityInstance.hbm.xml
</ value >
< value >
com/futuresoftware/oa/workflow/map/ProcessInstance.hbm.xml
</ value >
<!-- 引擎结束 -->
<!-- 文档资源管理 -->
< value >
com/futuresoftware/oa/pojo/TdrAdjunct.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdrResource.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdrResourcetype.hbm.xml
</ value >
<!-- 会议管理 -->
< value >
com/futuresoftware/oa/pojo/TmmCheckstatus.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmDiscussion.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmDiscussionCheck.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmDiscplan.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmMeeting.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmMeetingAdjunct.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmMeetingincepter.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmMeetinginform.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmMeetingSignuper.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmMeetingplan.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmMeetingroom.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmMeetingsummary.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmPlancheck.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmRoomstatus.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmSummarycheck.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmClass.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmBookclass.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmNotice.hbm.xml
</ value >
<!-- 系统管理 -->
< value >
com/futuresoftware/oa/pojo/TsysDepartment.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsysUser.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsysDuty.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsysLog.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsysTechlevel.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsysDoctype.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsysDocreceiver.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsysShortmessage.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdwBulletin.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdwCallingcard.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdwCallingcardGroup.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdwCcGroup.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdwCompcontact.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdwDailywork.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdwPolicyrule.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdwPolicytype.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsysCommonuser.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsysDeptgroup.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsysDeptlist.hbm.xml
</ value >
<!-- 系统管理 -->
<!-- 督查督办 -->
< value >
com/futuresoftware/oa/pojo/TsiSupervise.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsiReport.hbm.xml
</ value >
<!-- 督查督办 -->
<!-- 公文交换 -->
< value >
com/futuresoftware/oa/pojo/TsmMark.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsmTemplate.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsmConsign.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdmEmergency.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdmSecret.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdmDispatch.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdmDispatchDeal.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdmAcceptdoc.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdmAcceptDeal.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdmAcceptAdjunct.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdmDispAdjunct.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdmIncepttype.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdmMaxIndex.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdmWordMark.hbm.xml
</ value >
<!-- 公文交换 -->
<!-- 短消息 -->
< value >
com/futuresoftware/oa/pojo/TsmMessage.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsmMessageUser.hbm.xml
</ value >
<!-- 短消息 -->
<!-- 办公助手 -->
< value >
com/futuresoftware/oa/pojo/TsmTasklist.hbm.xml
</ value >
<!-- 办公助手 -->
<!-- 公文交换b -->
< value > com/futuresoftware/pojo/Log.hbm.xml </ value >
< value > com/futuresoftware/pojo/Doc.hbm.xml </ value >
< value > com/futuresoftware/pojo/Receipt.hbm.xml </ value >
< value > com/futuresoftware/pojo/Affiche.hbm.xml </ value >
<!-- 公文交换e -->
<!-- 政务信息 -->
< value >
com/futuresoftware/oa/pojo/TGiGovernmentinfo.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TGiJsbm.hbm.xml
</ value >
< value > com/futuresoftware/oa/pojo/TGiKt.hbm.xml </ value >
< value > com/futuresoftware/oa/pojo/TGiQp.hbm.xml </ value >
< value >
com/futuresoftware/oa/pojo/TGiState.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TGiQplcb.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TGiQplcmxb.hbm.xml
</ value >
<!-- 政务信息 -->
<!-- 值班要情 -->
< value >
com/futuresoftware/sl/dutyroom/domain/TSlDutyroomtype.hbm.xml
</ value >
< value >
com/futuresoftware/sl/dutyroom/domain/TSlDutyroomhistory.hbm.xml
</ value >
< value >
com/futuresoftware/sl/dutyroom/domain/TSlDutyroomsl.hbm.xml
</ value >
< value >
com/futuresoftware/sl/dutyroom/domain/TSlDutyroomdraft.hbm.xml
</ value >
< value >
com/futuresoftware/sl/dutyroom/domain/TSlDutyroomaccessory.hbm.xml
</ value >
< value >
com/futuresoftware/sl/dutyroom/domain/TSlDutyroomidea.hbm.xml
</ value >
< value >
com/futuresoftware/sl/dutyroom/domain/TSlDutyroominfo.hbm.xml
</ value >
< value >
com/futuresoftware/sl/dutyroom/domain/TSlDutyroomsecrent.hbm.xml
</ value >
<!-- 值班要情 -->
<!-- 公文模板文件 -->
< value >
com/futuresoftware/oa/pojo/TdmDocumentfile.hbm.xml
</ value >
<!-- 公文模板文件 -->
</ list >
</ property >
< property name ="hibernateProperties" >
< props >
<!-- DB2
<prop key="hibernate.dialect">
org.hibernate.dialect.DB2Dialect
</prop>
-->
<!-- Oracle -->
< prop key ="hibernate.dialect" > org.hibernate.dialect.Oracle9Dialect </ prop >
<!-- MySQL
<prop key="hibernate.dialect">
org.hibernate.dialect.MySQLDialect
</prop>
-->
< prop key ="hibernate.show_sql" > true </ prop >
< prop key ="hibernate.hbm2ddl.auto" > none </ prop >
< prop key ="connection.useUnicode" > true </ prop >
< prop key ="connection.characterEncoding" > GBK </ prop >
< prop key ="hibernate.jdbc.fetch_size" > 50 </ prop >
< prop key ="hibernate.jdbc.batch_size" > 20 </ prop >
<!-- prop key="hibernate.connect.autocommit"> true </prop -->
</ props >
</ property >
</ bean >
< bean id ="transactionManager"
class ="org.springframework.orm.hibernate3.HibernateTransactionManager" >
< property name ="sessionFactory" >
< ref local ="sessionFactory" />
</ property >
</ bean >
< bean id ="hibernateTemplate"
class ="org.springframework.orm.hibernate3.HibernateTemplate" >
< property name ="sessionFactory" >
< ref bean ="sessionFactory" />
</ property >
</ bean >
<!-- Option Logic Layer Deploy -->
< bean id ="myDao"
class ="com.futuresoftware.oa.framework.MyDAOImpl" >
< property name ="hibernateTemplate" >
< ref bean ="hibernateTemplate" />
</ property >
</ bean >
< bean id ="baseDao"
class ="com.futuresoftware.oa.framework.BaseDAOImpl" >
< property name ="hibernateTemplate" >
< ref bean ="hibernateTemplate" />
</ property >
</ bean >
< bean id ="baseManagerTarget"
class ="com.futuresoftware.oa.framework.BaseManagerImpl" >
< property name ="baseDao" >
< ref bean ="baseDao" />
</ property >
</ bean >
< bean id ="baseManager"
class ="org.springframework.transaction.interceptor.TransactionProxyFactoryBean" >
< property name ="transactionManager" >
< ref bean ="transactionManager" />
</ property >
< property name ="target" >
< ref local ="baseManagerTarget" />
</ property >
< property name ="transactionAttributes" >
< props >
< prop key ="get*" > PROPAGATION_REQUIRED,readOnly </ prop >
< prop key ="list*" > PROPAGATION_REQUIRED,readOnly </ prop >
< prop key ="add*" > PROPAGATION_REQUIRED </ prop >
< prop key ="del*" > PROPAGATION_REQUIRED </ prop >
< prop key ="search*" > PROPAGATION_REQUIRED,readOnly </ prop >
< prop key ="update*" > PROPAGATION_REQUIRED </ prop >
< prop key ="save*" > PROPAGATION_REQUIRED </ prop >
< prop key ="merge*" > PROPAGATION_REQUIRED </ prop >
</ props >
</ property >
</ bean >
<!-- 配置Spring 资源文件 -->
< bean id ="messageSource"
class ="org.springframework.context.support.ResourceBundleMessageSource" >
< property name ="basenames" >
< list >
<!-- 资源文件名 -->
< value > messages </ value >
</ list >
</ property >
</ bean >
<!-- Option Logic Layer Deploy -->
</ beans >
<! DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "spring-beans.dtd" >
< beans >
<!-- Oralce -->
< bean id ="dataSource"
class ="org.apache.commons.dbcp.BasicDataSource" >
< property name ="driverClassName"
value ="oracle.jdbc.driver.OracleDriver" />
< property name ="url"
value ="jdbc:oracle:thin:@192.168.2.242:1521:FUTUREDB" />
< property name ="username" value ="YULIN" />
< property name ="password" value ="111111" />
</ bean >
<!-- DB2 -->
<!-- bean id="dataSource"
class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
<property name="driverClassName">
<value>com.ibm.db2.jcc.DB2Driver</value>
</property>
<property name="url">
<value>jdbc:db2://192.168.4.201:50000/FUTUREOA</value>
</property>
<property name="username">
<value>db2admin</value>
</property>
<property name="password">
<value>SXDZZW20061221</value>
</property>
</bean -->
<!-- bean id="dataSource"
class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName">
<value>jdbc/oa</value>
</property>
<property name="resourceRef">
<value>true</value>
</property>
</bean -->
<!-- MySQL
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName">
<value>com.mysql.jdbc.Driver</value>
</property>
<property name="url">
<value>jdbc:mysql://localhost:3306/baojioa?useUnicode=true&characterEncoding=GB2312</value>
</property>
<property name="username">
<value>root</value>
</property>
<property name="password">
<value>mysql</value>
</property>
</bean> -->
< bean id ="sessionFactory"
class ="org.springframework.orm.hibernate3.LocalSessionFactoryBean" >
< property name ="dataSource" >
< ref local ="dataSource" />
</ property >
< property name ="mappingResources" >
< list >
<!-- 档案管理 -->
< value >
com/futuresoftware/oa/pojo/TavArchive.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TavAttach.hbm.xml
</ value >
< value > com/futuresoftware/oa/pojo/TavBox.hbm.xml </ value >
< value >
com/futuresoftware/oa/pojo/TavCause.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TavComefilemethod.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TavInsidelendinfo.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TavLeader.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TavLendapprove.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TavOutlend.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TavQuanzong.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TavSaveperiod.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TavSort.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TavSortinfo.hbm.xml
</ value >
<!-- 引擎开始 -->
< value >
com/futuresoftware/oa/workflow/map/MeetDef.hbm.xml
</ value >
< value >
com/futuresoftware/oa/workflow/map/ProcessDefType.hbm.xml
</ value >
< value >
com/futuresoftware/oa/workflow/map/ProcessDef.hbm.xml
</ value >
< value >
com/futuresoftware/oa/workflow/map/DealType.hbm.xml
</ value >
< value >
com/futuresoftware/oa/workflow/map/ProcessDefSubType.hbm.xml
</ value >
< value >
com/futuresoftware/oa/workflow/map/ActivityDef.hbm.xml
</ value >
< value >
com/futuresoftware/oa/workflow/map/DiversionDef.hbm.xml
</ value >
< value >
com/futuresoftware/oa/workflow/map/ActivityInstance.hbm.xml
</ value >
< value >
com/futuresoftware/oa/workflow/map/ProcessInstance.hbm.xml
</ value >
<!-- 引擎结束 -->
<!-- 文档资源管理 -->
< value >
com/futuresoftware/oa/pojo/TdrAdjunct.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdrResource.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdrResourcetype.hbm.xml
</ value >
<!-- 会议管理 -->
< value >
com/futuresoftware/oa/pojo/TmmCheckstatus.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmDiscussion.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmDiscussionCheck.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmDiscplan.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmMeeting.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmMeetingAdjunct.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmMeetingincepter.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmMeetinginform.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmMeetingSignuper.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmMeetingplan.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmMeetingroom.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmMeetingsummary.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmPlancheck.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmRoomstatus.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmSummarycheck.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmClass.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmBookclass.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TmmNotice.hbm.xml
</ value >
<!-- 系统管理 -->
< value >
com/futuresoftware/oa/pojo/TsysDepartment.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsysUser.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsysDuty.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsysLog.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsysTechlevel.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsysDoctype.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsysDocreceiver.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsysShortmessage.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdwBulletin.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdwCallingcard.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdwCallingcardGroup.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdwCcGroup.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdwCompcontact.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdwDailywork.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdwPolicyrule.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdwPolicytype.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsysCommonuser.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsysDeptgroup.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsysDeptlist.hbm.xml
</ value >
<!-- 系统管理 -->
<!-- 督查督办 -->
< value >
com/futuresoftware/oa/pojo/TsiSupervise.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsiReport.hbm.xml
</ value >
<!-- 督查督办 -->
<!-- 公文交换 -->
< value >
com/futuresoftware/oa/pojo/TsmMark.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsmTemplate.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsmConsign.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdmEmergency.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdmSecret.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdmDispatch.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdmDispatchDeal.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdmAcceptdoc.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdmAcceptDeal.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdmAcceptAdjunct.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdmDispAdjunct.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdmIncepttype.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdmMaxIndex.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TdmWordMark.hbm.xml
</ value >
<!-- 公文交换 -->
<!-- 短消息 -->
< value >
com/futuresoftware/oa/pojo/TsmMessage.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TsmMessageUser.hbm.xml
</ value >
<!-- 短消息 -->
<!-- 办公助手 -->
< value >
com/futuresoftware/oa/pojo/TsmTasklist.hbm.xml
</ value >
<!-- 办公助手 -->
<!-- 公文交换b -->
< value > com/futuresoftware/pojo/Log.hbm.xml </ value >
< value > com/futuresoftware/pojo/Doc.hbm.xml </ value >
< value > com/futuresoftware/pojo/Receipt.hbm.xml </ value >
< value > com/futuresoftware/pojo/Affiche.hbm.xml </ value >
<!-- 公文交换e -->
<!-- 政务信息 -->
< value >
com/futuresoftware/oa/pojo/TGiGovernmentinfo.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TGiJsbm.hbm.xml
</ value >
< value > com/futuresoftware/oa/pojo/TGiKt.hbm.xml </ value >
< value > com/futuresoftware/oa/pojo/TGiQp.hbm.xml </ value >
< value >
com/futuresoftware/oa/pojo/TGiState.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TGiQplcb.hbm.xml
</ value >
< value >
com/futuresoftware/oa/pojo/TGiQplcmxb.hbm.xml
</ value >
<!-- 政务信息 -->
<!-- 值班要情 -->
< value >
com/futuresoftware/sl/dutyroom/domain/TSlDutyroomtype.hbm.xml
</ value >
< value >
com/futuresoftware/sl/dutyroom/domain/TSlDutyroomhistory.hbm.xml
</ value >
< value >
com/futuresoftware/sl/dutyroom/domain/TSlDutyroomsl.hbm.xml
</ value >
< value >
com/futuresoftware/sl/dutyroom/domain/TSlDutyroomdraft.hbm.xml
</ value >
< value >
com/futuresoftware/sl/dutyroom/domain/TSlDutyroomaccessory.hbm.xml
</ value >
< value >
com/futuresoftware/sl/dutyroom/domain/TSlDutyroomidea.hbm.xml
</ value >
< value >
com/futuresoftware/sl/dutyroom/domain/TSlDutyroominfo.hbm.xml
</ value >
< value >
com/futuresoftware/sl/dutyroom/domain/TSlDutyroomsecrent.hbm.xml
</ value >
<!-- 值班要情 -->
<!-- 公文模板文件 -->
< value >
com/futuresoftware/oa/pojo/TdmDocumentfile.hbm.xml
</ value >
<!-- 公文模板文件 -->
</ list >
</ property >
< property name ="hibernateProperties" >
< props >
<!-- DB2
<prop key="hibernate.dialect">
org.hibernate.dialect.DB2Dialect
</prop>
-->
<!-- Oracle -->
< prop key ="hibernate.dialect" > org.hibernate.dialect.Oracle9Dialect </ prop >
<!-- MySQL
<prop key="hibernate.dialect">
org.hibernate.dialect.MySQLDialect
</prop>
-->
< prop key ="hibernate.show_sql" > true </ prop >
< prop key ="hibernate.hbm2ddl.auto" > none </ prop >
< prop key ="connection.useUnicode" > true </ prop >
< prop key ="connection.characterEncoding" > GBK </ prop >
< prop key ="hibernate.jdbc.fetch_size" > 50 </ prop >
< prop key ="hibernate.jdbc.batch_size" > 20 </ prop >
<!-- prop key="hibernate.connect.autocommit"> true </prop -->
</ props >
</ property >
</ bean >
< bean id ="transactionManager"
class ="org.springframework.orm.hibernate3.HibernateTransactionManager" >
< property name ="sessionFactory" >
< ref local ="sessionFactory" />
</ property >
</ bean >
< bean id ="hibernateTemplate"
class ="org.springframework.orm.hibernate3.HibernateTemplate" >
< property name ="sessionFactory" >
< ref bean ="sessionFactory" />
</ property >
</ bean >
<!-- Option Logic Layer Deploy -->
< bean id ="myDao"
class ="com.futuresoftware.oa.framework.MyDAOImpl" >
< property name ="hibernateTemplate" >
< ref bean ="hibernateTemplate" />
</ property >
</ bean >
< bean id ="baseDao"
class ="com.futuresoftware.oa.framework.BaseDAOImpl" >
< property name ="hibernateTemplate" >
< ref bean ="hibernateTemplate" />
</ property >
</ bean >
< bean id ="baseManagerTarget"
class ="com.futuresoftware.oa.framework.BaseManagerImpl" >
< property name ="baseDao" >
< ref bean ="baseDao" />
</ property >
</ bean >
< bean id ="baseManager"
class ="org.springframework.transaction.interceptor.TransactionProxyFactoryBean" >
< property name ="transactionManager" >
< ref bean ="transactionManager" />
</ property >
< property name ="target" >
< ref local ="baseManagerTarget" />
</ property >
< property name ="transactionAttributes" >
< props >
< prop key ="get*" > PROPAGATION_REQUIRED,readOnly </ prop >
< prop key ="list*" > PROPAGATION_REQUIRED,readOnly </ prop >
< prop key ="add*" > PROPAGATION_REQUIRED </ prop >
< prop key ="del*" > PROPAGATION_REQUIRED </ prop >
< prop key ="search*" > PROPAGATION_REQUIRED,readOnly </ prop >
< prop key ="update*" > PROPAGATION_REQUIRED </ prop >
< prop key ="save*" > PROPAGATION_REQUIRED </ prop >
< prop key ="merge*" > PROPAGATION_REQUIRED </ prop >
</ props >
</ property >
</ bean >
<!-- 配置Spring 资源文件 -->
< bean id ="messageSource"
class ="org.springframework.context.support.ResourceBundleMessageSource" >
< property name ="basenames" >
< list >
<!-- 资源文件名 -->
< value > messages </ value >
</ list >
</ property >
</ bean >
<!-- Option Logic Layer Deploy -->
</ beans >