diff --git a/src/main/resources/applicationContext.xml b/src/main/resources/applicationContext.xml index fdef8a5b0e..0a8b175f91 100644 --- a/src/main/resources/applicationContext.xml +++ b/src/main/resources/applicationContext.xml @@ -20,7 +20,6 @@ <property name="entityManagerFactory" ref="entityManagerFactory" /> </bean> - <bean id="eventDao" class="se.su.dsv.scipro.data.dao.jpa.EventDaoJPAImp"> <property name="entityManagerFactory" ref="entityManagerFactory" /> </bean> @@ -33,9 +32,21 @@ <property name="entityManagerFactory" ref="entityManagerFactory" /> </bean> - <bean class="se.su.dsv.scipro.DataInitialiser" init-method="dataInit"> - <property name="eventDao" ref="eventDao"></property> + <bean id="projectDao" class="se.su.dsv.scipro.data.dao.jpa.ProjectDaoJPAImp"> + <property name="entityManagerFactory" ref="entityManagerFactory" /> </bean> - + + <bean id="projectScheduleDao" class="se.su.dsv.scipro.data.dao.jpa.ProjectScheduleDaoJPAImp"> + <property name="entityManagerFactory" ref="entityManagerFactory" /> + </bean> + + <bean id="projectFollowerDao" class="se.su.dsv.scipro.data.dao.jpa.ProjectFollowerDaoJPAImp"> + <property name="entityManagerFactory" ref="entityManagerFactory" /> + </bean> + <!-- + <bean class="se.su.dsv.scipro.DataInitialiser" init-method="dataInit"> + <property name="projectDao" ref="projectDao"></property> + </bean> + --> </beans>