1 <?xml version="1.0" encoding="UTF-8"?>
5 * This is a common dao with basic CRUD operations and is not limited to any
6 * persistent layer implementation
8 * Copyright (C) 2008 Imran M Yousuf (imyousuf@smartitengineering.com)
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 3 of the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "spring-beans.dtd" >
27 <bean id="propertyConfigurer" class="com.smartitengineering.util.bean.spring.PropertiesLocatorConfigurer">
28 <property name="smartLocations">
30 <value>com/smartitengineering/smart-dao/smart-version-jgit/db-config.properties</value>
33 <property name="properties" >
35 <prop key="hibernate.connection.driver_class">${com.smartitengineering.smart-dao.smart-version.jgit.connection.driver_class}
37 <prop key="hibernate.connection.url">${com.smartitengineering.smart-dao.smart-version.jgit.connection.url}
39 <prop key="hibernate.connection.username">${com.smartitengineering.smart-dao.smart-version.jgit.connection.username}
41 <prop key="hibernate.connection.password">${com.smartitengineering.smart-dao.smart-version.jgit.connection.password}
43 <prop key="hibernate.dialect">${com.smartitengineering.smart-dao.smart-version.jgit.dialect}
45 <prop key="hibernate.show_sql">${com.smartitengineering.smart-dao.smart-version.jgit.show_sql}
47 <prop key="hibernate.autoCommit">${com.smartitengineering.smart-dao.smart-version.jgit.autoCommit}
49 <prop key="hibernate.hbm2ddl.auto">${com.smartitengineering.smart-dao.smart-version.jgit.hbm2ddl.auto}
51 <prop key="hibernate.query.substitutions">${com.smartitengineering.smart-dao.smart-version.jgit.query.substitutions}
57 <!-- Local C3P0 DataSource that works in any environment -->
58 <!-- (Both DataSource implementations have a "close" method to be called on shutdown) -->
59 <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close">
60 <property name="driverClass">
61 <value>${hibernate.connection.driver_class}</value>
63 <property name="jdbcUrl">
64 <value>${hibernate.connection.url}</value>
66 <property name="user">
67 <value>${hibernate.connection.username}</value>
69 <property name="password">
70 <value>${hibernate.connection.password}</value>
72 <property name="acquireIncrement">
75 <property name="checkoutTimeout">
78 <property name="initialPoolSize">
81 <property name="maxIdleTime">
84 <!-- Will never expire (seconds)-->
85 <property name="maxPoolSize">
88 <property name="maxStatements">
91 <property name="maxStatementsPerConnection">
94 <property name="minPoolSize">
97 <property name="numHelperThreads">
101 <import resource="service-app-context.xml" />