This repository has been archived by the owner on Feb 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
database.xml
70 lines (54 loc) · 3.35 KB
/
database.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd">
<!--
nQuire-it - backend and web-service API for nQuire-it (Java class binaries).
License: GNU GPL-3.0+ (https://gnu.org/licenses/gpl.html)
Copyright © 2014-2018 The Open University (IET-OU).
-->
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="username" value="${database.username}"/>
<property name="password" value="${database.password}"/>
<property name="driverClassName" value="com.mysql.jdbc.Driver"/>
<property name="url" value="${database.url}"/>
</bean>
<!--<bean class="org.springframework.orm.jpa.JpaTransactionManager" id="transactionManager">
<property name="entityManagerFactory" ref="entityManagerFactory"/>
</bean>-->
<tx:annotation-driven transaction-manager="txManager"/>
<bean class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean" id="entityManagerFactory">
<property name="persistenceUnitName" value="${persistence.unit}"/>
<property name="dataSource" ref="dataSource"/>
</bean>
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
<property name="dataSource" ref="dataSource"/>
</bean>
<bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource"/>
</bean>
<!-- <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="dataSource" ref="dataSource"/>
<property name="persistenceUnitName" value="${persistence.unit}"/>
<property name="jpaDialect" ref="jpaDialect"/>
<property name="jpaVendorAdapter">
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
</bean>
</property>
</bean>-->
<bean id="jpaDialect" class="org.springframework.orm.jpa.vendor.HibernateJpaDialect"/>
<bean id="projectDao" class="org.greengin.nquireit.dao.ProjectDao"/>
<bean id="userProfileDao" class="org.greengin.nquireit.dao.UserProfileDao"/>
<bean id="dataActivityDao" class="org.greengin.nquireit.dao.DataActivityDao"/>
<bean id="senseItDao" class="org.greengin.nquireit.dao.SenseItDao"/>
<bean id="spotItDao" class="org.greengin.nquireit.dao.SpotItDao"/>
<bean id="challengeDao" class="org.greengin.nquireit.dao.ChallengeDao"/>
<bean id="forumDao" class="org.greengin.nquireit.dao.ForumDao"/>
<bean id="voteDao" class="org.greengin.nquireit.dao.VoteDao"/>
<bean id="votableDao" class="org.greengin.nquireit.dao.VotableDao"/>
<bean id="commentsDao" class="org.greengin.nquireit.dao.CommentsDao"/>
<bean id="textsDao" class="org.greengin.nquireit.dao.TextDao"/>
<bean id="logsDao" class="org.greengin.nquireit.dao.LogsDao"/>
<bean id="filterDao" class="org.greengin.nquireit.dao.FilterDao"/>
</beans>