diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2018-02-27 08:54:36 +0100 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2018-02-27 08:54:36 +0100 |
commit | 9d01327960b0531da64ae3ffd1b39592830dd425 (patch) | |
tree | 06d67a5224ba7de9813e6803a5aedd4a30f35cc6 /id/server/moa-id-commons/src/main/resources | |
parent | 80ea041e0240eb3d9291eb0d699bb09c90aaa2a9 (diff) | |
download | moa-id-spss-9d01327960b0531da64ae3ffd1b39592830dd425.tar.gz moa-id-spss-9d01327960b0531da64ae3ffd1b39592830dd425.tar.bz2 moa-id-spss-9d01327960b0531da64ae3ffd1b39592830dd425.zip |
some more updates are required to support postgresql databases
Diffstat (limited to 'id/server/moa-id-commons/src/main/resources')
-rw-r--r-- | id/server/moa-id-commons/src/main/resources/configuration.beans.xml | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/id/server/moa-id-commons/src/main/resources/configuration.beans.xml b/id/server/moa-id-commons/src/main/resources/configuration.beans.xml index 1251cf406..79e2decc1 100644 --- a/id/server/moa-id-commons/src/main/resources/configuration.beans.xml +++ b/id/server/moa-id-commons/src/main/resources/configuration.beans.xml @@ -12,30 +12,32 @@ <context:annotation-config /> <beans profile="!byteBasedConfig"> <bean id="StringBasedConfigProperty" - class="at.gv.egovernment.moa.id.commons.db.dao.config.ConfigProperty"/> + class="at.gv.egovernment.moa.id.commons.db.dao.config.ConfigProperty" + scope="prototype"/> </beans> <beans profile="byteBasedConfig"> <bean id="ByteBasedConfigProperty" - class="at.gv.egovernment.moa.id.commons.db.dao.config.ConfigPropertyByteValues" - /> + class="at.gv.egovernment.moa.id.commons.db.dao.config.ConfigPropertyByteValues" + scope="prototype"/> </beans> - <bean id="configPropertyDao" - class="at.gv.egovernment.moa.id.commons.db.dao.config.DatabaseConfigPropertyImpl"/> + <beans> + <bean id="configPropertyDao" + class="at.gv.egovernment.moa.id.commons.db.dao.config.DatabaseConfigPropertyImpl"/> - <bean id="moaidconfig" class="at.gv.egovernment.moa.id.commons.config.persistence.MOAIDConfigurationImpl" /> + <bean id="moaidconfig" class="at.gv.egovernment.moa.id.commons.config.persistence.MOAIDConfigurationImpl" /> - <bean name="config" id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> - <property name="packagesToScan" value="at.gv.egovernment.moa.id.commons.db.dao.config" /> - <property name="dataSource" ref="dataSource" /> - <property name="jpaVendorAdapter" ref="jpaVendorAdapter" /> - <property name="persistenceUnitName" value="config" /> - </bean> - - <bean name="transactionManager" id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"> - <property name="entityManagerFactory" ref="entityManagerFactory" /> - </bean> - <tx:annotation-driven transaction-manager="transactionManager"/> + <bean name="config" id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> + <property name="packagesToScan" value="at.gv.egovernment.moa.id.commons.db.dao.config" /> + <property name="dataSource" ref="dataSource" /> + <property name="jpaVendorAdapter" ref="jpaVendorAdapter" /> + <property name="persistenceUnitName" value="config" /> + </bean> + <bean name="transactionManager" id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"> + <property name="entityManagerFactory" ref="entityManagerFactory" /> + </bean> + <tx:annotation-driven transaction-manager="transactionManager"/> + </beans> </beans>
\ No newline at end of file |