2012-11-01 23:29:18 -03:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2012-11-04 01:06:02 -03:00
|
|
|
<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
|
2020-11-07 11:56:38 -08:00
|
|
|
http://www.springframework.org/schema/beans/spring-beans.xsd">
|
2012-11-04 01:06:02 -03:00
|
|
|
|
2020-11-07 11:56:38 -08:00
|
|
|
<bean id="mindmapSessionFactory" class="org.springframework.orm.hibernate5.LocalSessionFactoryBean">
|
2012-11-01 23:29:18 -03:00
|
|
|
<property name="dataSource" ref="wiseDataSource"/>
|
2022-01-16 20:01:56 -08:00
|
|
|
<property name="annotatedClasses">
|
2012-11-01 23:29:18 -03:00
|
|
|
<list>
|
2022-01-16 20:01:56 -08:00
|
|
|
<value>com.wisemapping.model.User</value>
|
|
|
|
<value>com.wisemapping.model.Collaborator</value>
|
|
|
|
<value>com.wisemapping.model.Collaboration</value>
|
|
|
|
<value>com.wisemapping.model.Mindmap</value>
|
|
|
|
<value>com.wisemapping.model.Label</value>
|
|
|
|
<value>com.wisemapping.model.CollaborationProperties</value>
|
|
|
|
<value>com.wisemapping.model.AccessAuditory</value>
|
|
|
|
<value>com.wisemapping.model.MindMapHistory</value>
|
2012-11-01 23:29:18 -03:00
|
|
|
</list>
|
|
|
|
</property>
|
|
|
|
<property name="hibernateProperties">
|
|
|
|
<props>
|
|
|
|
<prop key="hibernate.dialect">${database.hibernate.dialect}</prop>
|
2023-07-28 22:46:38 -07:00
|
|
|
<!-- <prop key="hibernate.cache.use_second_level_cache">true</prop>-->
|
|
|
|
<!-- <prop key="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.EhCacheRegionFactory</prop>-->
|
2023-08-11 18:28:50 -07:00
|
|
|
<prop key="hibernate.default_batch_fetch_size">200</prop>
|
2022-09-26 08:42:55 -07:00
|
|
|
<prop key="hibernate.nestedTransactionAllowed">true</prop>
|
2023-02-15 22:47:42 -08:00
|
|
|
<prop key="hibernate.auto_quote_keyword">true</prop>
|
2012-11-01 23:29:18 -03:00
|
|
|
</props>
|
|
|
|
</property>
|
|
|
|
</bean>
|
|
|
|
|
2020-11-07 11:56:38 -08:00
|
|
|
<bean id="transactionManager" class="org.springframework.orm.hibernate5.HibernateTransactionManager">
|
|
|
|
<property name="sessionFactory" ref="mindmapSessionFactory"/>
|
2022-09-26 08:42:55 -07:00
|
|
|
<property name="nestedTransactionAllowed" value="true"/>
|
2012-11-01 23:29:18 -03:00
|
|
|
</bean>
|
|
|
|
|
|
|
|
</beans>
|