org.semispace.persistence.live.DataSource.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of semispace-persistence
Show all versions of semispace-persistence
Persistence module of SemiSpace, able to provide JDBC storage of long lived objects.
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> <bean id="semiSpaceDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name="driverClassName"> <value>org.postgresql.Driver</value> </property> <property name="url"> <value>jdbc:postgresql://127.0.0.1/semispace?charSet=UTF-8&encoding=UNICODE</value> </property> <property name="username"> <value>space</value> </property> <property name="password"> <value>spock472</value> </property> <property name="maxActive"> <value>1</value> </property> <property name="maxIdle"> <value>1</value> </property> </bean> <bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> <property name="hibernateProperties"> <props> <prop key="hibernate.hbm2ddl.auto">update</prop> <prop key="hibernate.dialect"> org.hibernate.dialect.PostgreSQLDialect </prop> <prop key="hibernate.connection.release_mode"> auto </prop> <prop key="hibernate.jdbc.batch_size">0</prop> <prop key="hibernate.cache.use_query_cache">false</prop> <prop key="hibernate.show_sql">false</prop> <prop key="hibernate.connection.pool_size">1</prop> </props> </property> <property name="dataSource"> <ref bean="semiSpaceDataSource" /> </property> <property name="annotatedClasses"> <ref bean="annotatedClasses" /> </property> <!-- <property name="annotatedPackages"> <ref bean="annotatedPackages" /> </property> --> </bean> </beans>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy