rendered paste body <bean
id="hibernateFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="annotatedClasses">
<list>
<value>com.scanplus.redax.data.AbstractArticleBean</value>
<value>com.scanplus.redax.data.BaseArticleBean</value>
<value>com.scanplus.redax.data.EditedArticleBean</value>
<value>com.scanplus.redax.data.MagazineBean</value>
<value>com.scanplus.redax.data.CategoryBean</value>
<value>com.scanplus.redax.data.MagazineDocumentBean</value>
<value>com.scanplus.redax.data.SubmissionResultBean</value>
<value>com.scanplus.redax.data.CommentBean</value>
<value>com.scanplus.redax.data.UserBean</value>
<value>com.scanplus.redax.data.AdministratorBean</value>
<value>com.scanplus.redax.data.ChiefEditorBean</value>
<value>com.scanplus.redax.data.content.ArticleContent</value>
<value>com.scanplus.redax.data.content.FileAttachment</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">${hibernate.dialect}</prop>
<prop key="hibernate.show.sql">true</prop>
<prop key="hibernate.hbm2ddl.auto">${hibernate.hbm2ddl.auto}</prop>
<prop key="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</prop>
<!-- <prop key="hibernate.cache.use_second_level_cache">true</prop> -->
<prop key="hibernate.search.default.directory_provider">org.hibernate.search.store.FSDirectoryProvider</prop>
<prop key="hibernate.search.default.indexBase">${hibernate.search.base}</prop>
</props>
</property>
<property name="eventListeners">
<map>
<entry key="merge">
<bean class="org.springframework.orm.hibernate3.support.IdTransferringMergeEventListener" />
</entry>
<entry key="post-load">
<list>
<bean class="com.scanplus.redax.data.dao.impl.events.MagazineSkinPostLoadEventListener">
<property name="skinRepository" ref="magazineSkinRepository" />
</bean>
<bean class="com.scanplus.redax.data.dao.impl.events.ArticleSchemaPostLoadEventListener">
<property name="schemaRepository" ref="schemaRepository" />
</bean>
</list>
</entry>
<entry key="post-update">
<ref bean="ftIndexEventListener" />
</entry>
<entry key="post-insert">
<ref bean="ftIndexEventListener" />
</entry>
<entry key="post-delete">
<list>
<ref bean="ftIndexEventListener"/>
<bean class="com.scanplus.redax.data.dao.impl.events.ImageDataPostDeleteListener">
<property name="imageDataDao" ref="imageDataDao" />
</bean>
</list>
</entry>
</map>
</property>
</bean>
<bean id="contentDaoTarget"
class="com.scanplus.redax.data.dao.impl.ContentDaoHibernateImpl">
<property name="sessionFactory" ref="hibernateFactory" />
</bean>
<bean id="transactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref bean="hibernateFactory" />
</property>
</bean>
<bean id="baseTransactionProxy"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"
abstract="true">
<property name="transactionManager" ref="transactionManager" />
<property name="transactionAttributes">
<props>
<prop key="add*">PROPAGATION_REQUIRED</prop>
<prop key="save*">PROPAGATION_REQUIRED</prop>
<prop key="update*">PROPAGATION_REQUIRED</prop>
<prop key="delete*">PROPAGATION_REQUIRED</prop>
<prop key="*">PROPAGATION_REQUIRES_NEW, ISOLATION_READ_COMMITTED, readOnly</prop>
</props>
</property>
</bean>
<bean id="contentDao" parent="baseTransactionProxy">
<property name="transactionManager" ref="transactionManager"/>
<property name="target" ref="contentDaoTarget"/>
</bean>