
com.brienwheeler.lib.db.appEntityManagerFactory.xml Maven / Gradle / Ivy
The newest version!
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd" > <bean id="com.brienwheeler.lib.db.appEntityManagerFactory.PropertyPlaceholderConfigurer" class="com.brienwheeler.lib.spring.beans.PropertyPlaceholderConfigurer"> <property name="placeholderOrder" value="LIBRARY"/> <property name="locations"> <list> <value>classpath:com/brienwheeler/lib/db/appEntityManagerFactory.properties</value> </list> </property> </bean> <import resource="classpath:com/brienwheeler/lib/db/appDataSource.xml"/> <bean id="com.brienwheeler.lib.db.appEntityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> <property name="jpaVendorAdapter"> <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"/> </property> <property name="persistenceUnitManager"> <bean class="com.brienwheeler.lib.db.LocationValidatingPersistenceUnitManager"> <property name="commaSeparatedXmlLocations" value="${com.brienwheeler.lib.db.appEntityManagerFactory.persistenceXmlLocation}"/> <property name="persistenceUnitPostProcessors"> <list> <bean class="com.brienwheeler.lib.db.MergingPersistenceUnitPostProcessor"> <property name="properties"> <map> <entry key="hibernate.dialect" value="${com.brienwheeler.lib.db.appEntityManagerFactory.hibernate.dialect}"/> <entry key="hibernate.hbm2ddl.auto" value="${com.brienwheeler.lib.db.appEntityManagerFactory.hibernate.hbm2ddl.auto}"/> </map> </property> </bean> </list> </property> <property name="defaultDataSource" ref="com.brienwheeler.lib.db.appDataSource"/> <property name="dataSourceLookup"> <bean class="org.springframework.jdbc.datasource.lookup.SingleDataSourceLookup"> <constructor-arg ref="com.brienwheeler.lib.db.appDataSource"/> </bean> </property> </bean> </property> <property name="persistenceUnitName" value="${com.brienwheeler.lib.db.appEntityManagerFactory.persistenceUnitName}"/> </bean> <bean id="com.brienwheeler.lib.db.persistenceAnnotationBeanPostProcessor" class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"/> </beans>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy