
spring.installer.installer-entitymanager-context.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jms-implementation Show documentation
Show all versions of jms-implementation Show documentation
InterProScan JMS Implementation Module
The newest version!
<?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:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd"> <bean id="schemaCreatingEntityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> <property name="dataSource" ref="dataSource"/> <property name="persistenceProviderClass" value="org.hibernate.jpa.HibernatePersistenceProvider"/> <property name="jpaPropertyMap"> <map> <entry key="hibernate.show_sql" value="${hibernate.show_sql}"/> <entry key="hibernate.format_sql" value="${hibernate.format_sql}"/> <entry key="hibernate.dialect" value="${hibernate.dialect}"/> <entry key="hibernate.default_schema" value="${hibernate.default_schema}"/> <entry key="hibernate.use_sql_comments" value="${hibernate.use_sql_comments}"/> <entry key="hibernate.jdbc.batch_size" value="${hibernate.jdbc.batch_size}"/> <entry key="hibernate.jdbc.fetch_size" value="${hibernate.jdbc.fetch_size}"/> <entry key="hibernate.max_fetch_depth" value="${hibernate.max_fetch_depth}"/> <!-- create, update --> <entry key="hibernate.hbm2ddl.auto" value="${hibernate.hbm2ddl_auto}"/> <!-- Note - the "hibernate.physical_naming_strategy" does the following: * guarantees that table / column / index identifiers are no longer than 30 characters. * turns camelHump wording into underscore_spaced Otherwise, it is not Oracle specific in any way, so will work fine with any RDBMS. --> <entry key="hibernate.physical_naming_strategy" value="uk.ac.ebi.interpro.scan.model.hibernate.OraclePhysicalNamingStrategy"/> <!--c3p0 connection pool--> <entry key="hibernate.c3p0.min_size" value="${hibernate.c3p0.min_size}"/> <entry key="hibernate.c3p0.max_size" value="${hibernate.c3p0.max_size}"/> <entry key="hibernate.c3p0.acquire_increment" value="${hibernate.c3p0.acquire_increment}"/> <entry key="hibernate.c3p0.idle_test_period" value="${hibernate.c3p0.idle_test_period}"/> <entry key="hibernate.c3p0.max_statements" value="${hibernate.c3p0.max_statements}"/> <entry key="hibernate.c3p0.timeout" value="${hibernate.c3p0.timeout}"/> </map> </property> </bean> <tx:annotation-driven/> <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"> <property name="entityManagerFactory" ref="schemaCreatingEntityManagerFactory"/> </bean> </beans>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy