<beans>
<bean id="myDataSource" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
<property name="driverClassName">
<value>oracle.jdbc.driver.OracleDriver</value>
</property>
<property name="url">
<value>jdbc:oracle:thin:@server-lms:1521:orcl</value>
</property>
<property name="username">
<value>cvupload</value>
</property>
<property name="password">
<value>cvupload</value>
</property>
</bean>
<bean id="mySessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="myDataSource" />
</property>
<property name="mappingResources">
<list>
<value>cvDetails.hbm.xml</value>
<value>TestType.hbm.xml</value>
<value>Status.hbm.xml</value>
<value>TestDetails.hbm.xml</value>
<value>Tester.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
<!-- <prop key="hibernate.hbm2ddl.auto">create</prop> -->
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.max_fetch_depth">2</prop>
</props>
<!--<value>hibernate.dialect=org.hibernate.dialect.Oracle10gDialect</value> -->
</property>
</bean>
No comments:
Post a Comment