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

META-INF.hibernate-spring.xml Maven / Gradle / Ivy

<?xml version="1.0"?>

<beans
	default-destroy-method="destroy"
	default-init-method="afterPropertiesSet"
	xmlns="http://www.springframework.org/schema/beans"
	xmlns:util="http://www.springframework.org/schema/util"
	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 http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd"
>
	<bean class="com.liferay.portal.dao.orm.hibernate.jmx.HibernateStatisticsService" id="com.liferay.portal.dao.orm.hibernate.jmx.HibernateStatisticsService">
		<property name="sessionFactoryImplementor" ref="liferayHibernateSessionFactory" />
	</bean>
	<bean class="com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil">
		<property name="dynamicQueryFactory">
			<bean class="com.liferay.portal.dao.orm.hibernate.DynamicQueryFactoryImpl" />
		</property>
	</bean>
	<bean class="com.liferay.portal.kernel.dao.orm.OrderFactoryUtil">
		<property name="orderFactory">
			<bean class="com.liferay.portal.dao.orm.hibernate.OrderFactoryImpl" />
		</property>
	</bean>
	<bean class="com.liferay.portal.kernel.dao.orm.ProjectionFactoryUtil">
		<property name="projectionFactory">
			<bean class="com.liferay.portal.dao.orm.hibernate.ProjectionFactoryImpl" />
		</property>
	</bean>
	<bean class="com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil">
		<property name="propertyFactory">
			<bean class="com.liferay.portal.dao.orm.hibernate.PropertyFactoryImpl" />
		</property>
	</bean>
	<bean class="com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil">
		<property name="restrictionsFactory">
			<bean class="com.liferay.portal.dao.orm.hibernate.RestrictionsFactoryImpl" />
		</property>
	</bean>
	<bean class="com.liferay.portal.spring.hibernate.PortalHibernateConfiguration" id="counterHibernateSessionFactory">
		<property name="configurationResources">
			<array>
				<value>META-INF/counter-hbm.xml</value>
			</array>
		</property>
		<property name="dataSource" ref="counterDataSource" />
		<property name="hibernateProperties">
			<props>
				<prop key="javax.persistence.validation.mode">none</prop>
			</props>
		</property>
		<property name="mvccEnabled" value="false" />
	</bean>
	<bean class="com.liferay.portal.spring.hibernate.PortalHibernateConfiguration" id="liferayHibernateSessionFactory">
		<property name="dataSource" ref="liferayDataSource" />
	</bean>
	<bean class="com.liferay.portal.spring.transaction.TransactionManagerFactory" factory-method="createTransactionManager" id="liferayTransactionManager">
		<constructor-arg ref="liferayDataSource" />
		<constructor-arg ref="liferayHibernateSessionFactory" />
	</bean>
</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy