mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-21 13:47:57 +01:00
Change to nexted for transaction propagation.
This commit is contained in:
parent
225a913a3a
commit
0c88b8a474
@ -24,12 +24,14 @@
|
|||||||
<prop key="hibernate.cache.use_second_level_cache">true</prop>
|
<prop key="hibernate.cache.use_second_level_cache">true</prop>
|
||||||
<prop key="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.EhCacheRegionFactory</prop>
|
<prop key="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.EhCacheRegionFactory</prop>
|
||||||
<prop key="hibernate.default_batch_fetch_size">200</prop>
|
<prop key="hibernate.default_batch_fetch_size">200</prop>
|
||||||
|
<prop key="hibernate.nestedTransactionAllowed">true</prop>
|
||||||
</props>
|
</props>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="transactionManager" class="org.springframework.orm.hibernate5.HibernateTransactionManager">
|
<bean id="transactionManager" class="org.springframework.orm.hibernate5.HibernateTransactionManager">
|
||||||
<property name="sessionFactory" ref="mindmapSessionFactory"/>
|
<property name="sessionFactory" ref="mindmapSessionFactory"/>
|
||||||
|
<property name="nestedTransactionAllowed" value="true"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- Hibernate Template Definition -->
|
<!-- Hibernate Template Definition -->
|
||||||
@ -41,7 +43,7 @@
|
|||||||
class="org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource">
|
class="org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource">
|
||||||
<property name="properties">
|
<property name="properties">
|
||||||
<props>
|
<props>
|
||||||
<prop key="*">PROPAGATION_REQUIRED_NEW</prop>
|
<prop key="*">PROPAGATION_NESTED</prop>
|
||||||
</props>
|
</props>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
Loading…
Reference in New Issue
Block a user