Subversion Repository Public Repository

Satyam

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
<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<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"
xmlns:jdbc="http://www.springframework.org/schema/jdbc"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
      http://www.springframework.org/schema/jdbc
      http://www.springframework.org/schema/jdbc/spring-jdbc.xsd
      http://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans.xsd
      http://www.springframework.org/schema/tx 
      http://www.springframework.org/schema/tx/spring-tx.xsd
      http://www.springframework.org/schema/context
      http://www.springframework.org/schema/context/spring-context.xsd">

<context:property-placeholder location="file:${user.home}/emr/satyam/jdbc.properties" />
<bean id = "dataSource" class = "org.apache.commons.dbcp.BasicDataSource">
    <property name = "driverClassName" value = "${jdbc.driverClassName}" />
    <property name = "url" value = "${jdbc.url}" />
    <property name = "username" value = "${jdbc.username}" />
    <property name = "password" value = "${jdbc.password}" />
    <property name = "maxActive" value = "${dbcp.maxActive}" />
    <property name = "maxIdle" value = "${dbcp.maxIdle}" />
    <property name = "maxWait" value = "${dbcp.maxWait}" />
</bean>

<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
    <property name="configurationClass" >
         <value>org.hibernate.cfg.AnnotationConfiguration</value>
    </property>
    <property name="packagesToScan" >
        <list>
            <value>com.bestray.healthcareinpatient.vo</value>
            <value>com.bestray.dentalapp.vo</value>
            <value>com.bestray.healthcarecommonutil.vo</value>
            <value>com.bestray.labinformationsystem.vo</value>
            <value>com.bestray.healthcareemr.Vo</value>
        </list>
    </property>
    <property name="dataSource" ref="dataSource"/>
    <property name="hibernateProperties">
        <props>
            <prop key="hibernate.dialect">${hibernate.dialect}</prop>
            <prop key="hibernate.show_sql">${hibernate.show_sql}</prop>
            <prop key="hibernate.current_session_context_class">${hibernate.current_session_context_class}</prop>
        </props>
    </property>
</bean>
<tx:annotation-driven  transaction-manager="transactionManager"/>
<bean id="transactionManager"
      class="org.springframework.orm.hibernate3.HibernateTransactionManager">
      <property name="sessionFactory" ref="sessionFactory"/>
</bean> 
<bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate">  
      <constructor-arg>  
            <ref bean="sessionFactory"/>  
      </constructor-arg>  
</bean>  
</beans>

Commits for Satyam/AuroCareEMR/target/classes/healthCareDataAccessContext.xml

Diff revisions: vs.
Revision Author Commited Message
1 girijabapi picture girijabapi Fri 20 Jul, 2018 05:59:17 +0000