| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE beans PUBLIC
- "-//SPRING//DTD BEAN//EN"
- "http://www.springframework.org/dtd/spring-beans.dtd">
- <beans>
-
- <bean id="testPropertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
- <property name="locations">
- <list>
- <value>classpath:/test.properties</value>
- <value>classpath:/env.properties</value>
- </list>
- </property>
- </bean>
- <bean id="domainObjectFactory" class="magoffin.matt.ieat.biz.impl.JAXBDomainObjectFactoryImpl"/>
-
- <bean id="applicationInitializer" class="magoffin.matt.ieat.test.AppContextInitializer">
- <property name="domainObjectFactory"><ref bean="domainObjectFactory"/></property>
- <property name="environment"><value>classpath:/env.properties</value></property>
- </bean>
- <bean id="myDataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
- <property name="driverClassName"><value>${jdbc.driver}</value></property>
- <property name="url"><value>${jdbc.url}</value></property>
- <property name="username"><value>${jdbc.user}</value></property>
- <property name="password"><value>${jdbc.pass}</value></property>
- </bean>
-
- <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
- <property name="host"><value>${smtp.host}</value></property>
- </bean>
- <bean id="mySessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
- <property name="dataSource"><ref local="myDataSource"/></property>
- <property name="mappingResources">
- <list>
- <value>ieat.hbm.xml</value>
- <value>magoffin/matt/ieat/domain/Base.hbm.xml</value>
- <value>magoffin/matt/ieat/domain/Course.hbm.xml</value>
- <value>magoffin/matt/ieat/domain/Difficulty.hbm.xml</value>
- <value>magoffin/matt/ieat/domain/Ethnicity.hbm.xml</value>
- <value>magoffin/matt/ieat/domain/Ingredient.hbm.xml</value>
- <value>magoffin/matt/ieat/domain/Meal.hbm.xml</value>
- <value>magoffin/matt/ieat/domain/MealRecipe.hbm.xml</value>
- <value>magoffin/matt/ieat/domain/PrepTime.hbm.xml</value>
- <value>magoffin/matt/ieat/domain/Recipe.hbm.xml</value>
- <value>magoffin/matt/ieat/domain/RecipeComment.hbm.xml</value>
- <value>magoffin/matt/ieat/domain/RecipeIngredient.hbm.xml</value>
- <value>magoffin/matt/ieat/domain/RecipeRating.hbm.xml</value>
- <value>magoffin/matt/ieat/domain/RecipeStep.hbm.xml</value>
- <value>magoffin/matt/ieat/domain/RelatedRecipe.hbm.xml</value>
- <value>magoffin/matt/ieat/domain/RelationKind.hbm.xml</value>
- <value>magoffin/matt/ieat/domain/System.hbm.xml</value>
- <value>magoffin/matt/ieat/domain/Unit.hbm.xml</value>
- <value>magoffin/matt/ieat/domain/User.hbm.xml</value>
- </list>
- </property>
- <property name="hibernateProperties">
- <props>
- <prop key="hibernate.dialect">${hibernate.dialect}</prop>
- <prop key="hibernate.show_sql">${hibernate.show_sql}</prop>
- <prop key="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</prop>
- <prop key="hibernate.max_fetch_depth">4</prop>
- </props>
- </property>
- </bean>
- <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
- <property name="sessionFactory"><ref local="mySessionFactory"/></property>
- <property name="dataSource"><ref local="myDataSource"/></property>
- </bean>
- </beans>
|