<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
	<bean id="org.sakaiproject.springframework.orm.hibernate.impl.AdditionalHibernateMappingsImpl.privacy"
		class="org.sakaiproject.springframework.orm.hibernate.impl.AdditionalHibernateMappingsImpl">
		<property name="mappingResources">
			<list>
				<value>
					org/sakaiproject/hbm/privacy/PrivacyRecord.hbm.xml
				</value>
			</list>
		</property>
	</bean>

<!--	<bean id="org.sakaiproject.api.privacy.PrivacyManager"
		class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
		
		<property name="transactionManager">
			<ref bean="org.sakaiproject.springframework.orm.hibernate.GlobalTransactionManager" />
		</property>
		<property name="target">
			<bean id="org.sakaiproject.component.privacy.PrivacyManagerImpl"
				class="org.sakaiproject.component.privacy.PrivacyManagerImpl"
				singleton="true">
				<property name="sessionFactory">
					<ref
						bean="org.sakaiproject.springframework.orm.hibernate.GlobalSessionFactory" />
				</property>
			</bean>
		</property>
		<property name="transactionAttributes">
			<props>
				<prop key="*">PROPAGATION_REQUIRED</prop>
			</props>
		</property>
	</bean>-->

  <bean id="org.sakaiproject.component.privacy.PrivacyManagerImpl"
	  class="org.sakaiproject.component.privacy.PrivacyManagerImpl"
		singleton="true">
		<property name="sessionFactory">
		 <ref
			 bean="org.sakaiproject.springframework.orm.hibernate.GlobalSessionFactory" />
		</property>
	</bean>
	
	<bean id="org.sakaiproject.api.privacy.PrivacyManager"
		class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
		<property name="transactionManager">
			<ref bean="org.sakaiproject.springframework.orm.hibernate.GlobalTransactionManager" />
		</property>
		<property name="target">
		  <ref bean="org.sakaiproject.component.privacy.PrivacyManagerImpl" />
		</property>
		<property name="transactionAttributes">
			<props>
				<prop key="*">PROPAGATION_REQUIRED</prop>
			</props>
		</property>
	</bean>	
</beans>
