All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.spring.emf.mc-emf-local.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
	xmlns:osgi-compendium="http://www.springframework.org/schema/osgi-compendium"
	xsi:schemaLocation="
			http://www.springframework.org/schema/beans
				http://www.springframework.org/schema/beans/spring-beans.xsd
			http://www.springframework.org/schema/context 
				http://www.springframework.org/schema/context/spring-context.xsd
			http://www.springframework.org/schema/aop 
       			http://www.springframework.org/schema/aop/spring-aop.xsd
			http://www.springframework.org/schema/osgi-compendium
    			http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd
    		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd">

	<!-- JPA EntityManagerFactory -->

	<bean id="entityManagerFactory"
		class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
		<property name="dataSource" ref="osgiDataSource"/>
		<property name="jpaDialect" ref="jpaDialect"></property>
		<property name="persistenceUnitName" value="${emf.persistenceUnitName}"/>
		<property name="jpaVendorAdapter">
			<bean
				class="org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter">
				<property name="showSql" value="true"/>
			</bean>
		</property>
		<property name="persistenceUnitPostProcessors">
			<list>
				<bean
					class="net.nan21.dnet.core.business.persistenceunit.DnetPersistenceUnitPostProcessor">
					<constructor-arg value="${emf.persistenceUnitName}"/>
					<constructor-arg ref="osgiDataSource"/>
					<constructor-arg>
						<props>
							<prop key="eclipselink.ddl-generation">${eclipselink.ddl-generation}</prop>
							<prop key="eclipselink.application-location">${eclipselink.application-location}</prop>
							<prop key="eclipselink.create-ddl-jdbc-file-name">create_nan21_dnet_module_md.sql</prop>
							<prop key="eclipselink.drop-ddl-jdbc-file-name">drop_nan21_dnet_module_md.sql</prop>
							<prop key="eclipselink.ddl-generation.output-mode">${eclipselink.ddl-generation.output-mode}</prop>
							<prop key="eclipselink.logging.level">${eclipselink.logging.level}</prop>
							<prop key="eclipselink.logging.timestamp">${eclipselink.logging.timestamp}</prop>
							<prop key="eclipselink.logging.session">${eclipselink.logging.session}</prop>
							<prop key="eclipselink.logging.thread">${eclipselink.logging.thread}</prop>
							<prop key="eclipselink.logging.exceptions">${eclipselink.logging.exceptions}</prop>
							<prop key="eclipselink.cache.type.default">${eclipselink.cache.type.default}</prop>
							<prop key="eclipselink.cache.size.default">${eclipselink.cache.size.default}</prop>
							<prop key="eclipselink.cache.shared.default">${eclipselink.cache.shared.default}</prop>
							<prop key="eclipselink.flush-clear.cache">${eclipselink.flush-clear.cache}</prop>
						</props>
					</constructor-arg>
				</bean>
			</list>
		</property>
	</bean>

	<bean id="jpaDialect"
		class="org.springframework.orm.jpa.vendor.EclipseLinkJpaDialect"/>

	<!-- Transaction manager -->

	<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
		<property name="entityManagerFactory" ref="entityManagerFactory"></property>
		<property name="jpaDialect" ref="jpaDialect"></property>
	</bean>
</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy