37 lines
2.1 KiB
XML
37 lines
2.1 KiB
XML
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||
|
xmlns:amq="http://activemq.apache.org/schema/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||
|
xmlns:context="http://www.springframework.org/schema/context"
|
||
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
||
|
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
|
||
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
|
||
|
|
||
|
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
|
||
|
<property name="driverClassName" value="org.hsqldb.jdbc.JDBCDriver" />
|
||
|
<property name="url" value="jdbc:hsqldb:mem:unit-testing" />
|
||
|
<property name="username" value="sa" />
|
||
|
<property name="password" value="" />
|
||
|
<property name="defaultAutoCommit" value="false" />
|
||
|
</bean>
|
||
|
|
||
|
<bean id="metadataSessionFactory"
|
||
|
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
|
||
|
<property name="dataSource" ref="dataSource"/>
|
||
|
<property name="annotatedClasses">
|
||
|
<list>
|
||
|
<value>com.raytheon.uf.edex.datadelivery.bandwidth.dao.BandwidthAllocation</value>
|
||
|
<value>com.raytheon.uf.edex.datadelivery.bandwidth.dao.SubscriptionRetrieval</value>
|
||
|
<value>com.raytheon.uf.edex.datadelivery.bandwidth.dao.DataSetMetaDataDao</value>
|
||
|
<value>com.raytheon.uf.edex.datadelivery.bandwidth.dao.SubscriptionDao</value>
|
||
|
<value>com.raytheon.uf.edex.datadelivery.retrieval.db.RetrievalRequestRecord</value>
|
||
|
</list>
|
||
|
</property>
|
||
|
<property name="configLocation">
|
||
|
<value>classpath:unit-test-hibernate.cfg.xml</value>
|
||
|
</property>
|
||
|
</bean>
|
||
|
|
||
|
<bean id="metadataTxManager"
|
||
|
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
|
||
|
<property name="sessionFactory" ref="metadataSessionFactory" />
|
||
|
</bean>
|
||
|
</beans>
|