<!--target objects-- <bean id="Deptdao" class="Com.morris.school.dao.jdbc.DepartmentDapImpl"> <property name="sessionfactory" ref="Sessionfactory"></property> </bean> <!--Facets-- <bean id="TransactionManager" class="Org.springframework.orm.hibernate3.HibernateTransactionManager"> <property name="sessionfactory" ref="Sessionfactory"></property> </bean> <!--public affairs agent--- <bean id="Basetransactionproxy" class="Org.springframework.transaction.interceptor.TransactionProxyFactoryBean" abstract="True " lazy-init="true"> <!--Facets-- <property name="TransactionManager" ref="TransactionManager"></property> <!--Property Templates-- <property name="Transactionattributes"> <props> <prop key="add*">PROPAGATION_REQUIRED</prop> <prop key="update*">PROPAGATION_REQUIRED</prop> <prop key="delete*">PROPAGATION_REQUIRED</prop> <prop key="insert*">PROPAGATION_REQUIRED</prop> <prop key="save*">PROPAGATION_REQUIRED</prop> <prop key="do*">PROPAGATION_REQUIRED</prop> <prop key="query*">readOnly</prop> <prop key="find*">readOnly</prop> <prop key="*">PROPAGATION_REQUIRED,readOnly</prop> <!-- Propagation_required = = supports the current transaction and re-creates a transaction if no transaction is currently in service. Propagation_supports = = supports the current transaction and executes non-transacted if no transaction is currently readonly = = is read-only, the set operation permission is read-only, commonly used for querying - </props> </property> </bean> <bean id="Userdaoproxy" parent="Basetransactionproxy"> <property name="target" ref="Deptdao"></property> </bean> |