Consistent use of <pre class="code">
Issue: SPR-8108
This commit is contained in:
@@ -35,7 +35,7 @@ import org.springframework.beans.factory.InitializingBean;
|
||||
* definition, as the list element for the "filterDefinitions" bean property.
|
||||
* For example:
|
||||
*
|
||||
* <pre>
|
||||
* <pre class="code">
|
||||
* <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
|
||||
* ...
|
||||
* <property name="filterDefinitions">
|
||||
|
||||
@@ -36,7 +36,7 @@ import org.springframework.transaction.support.TransactionSynchronizationManager
|
||||
* Hibernate's own {@code SessionFactory.getCurrentSession()} method, to be
|
||||
* able to detect a thread-bound Session. Typically, the code will look like as follows:
|
||||
*
|
||||
* <pre>
|
||||
* <pre class="code">
|
||||
* public void doSomeDataAccessAction() {
|
||||
* Session session = this.sessionFactory.getCurrentSession();
|
||||
* ...
|
||||
|
||||
@@ -445,7 +445,7 @@ public class LocalSessionFactoryBean extends AbstractSessionFactoryBean implemen
|
||||
* This configuration setting corresponds to the <class-cache> entry
|
||||
* in the "hibernate.cfg.xml" configuration format.
|
||||
* <p>For example:
|
||||
* <pre>
|
||||
* <pre class="code">
|
||||
* <property name="entityCacheStrategies">
|
||||
* <props>
|
||||
* <prop key="com.mycompany.Customer">read-write</prop>
|
||||
@@ -465,7 +465,7 @@ public class LocalSessionFactoryBean extends AbstractSessionFactoryBean implemen
|
||||
* This configuration setting corresponds to the <collection-cache> entry
|
||||
* in the "hibernate.cfg.xml" configuration format.
|
||||
* <p>For example:
|
||||
* <pre>
|
||||
* <pre class="code">
|
||||
* <property name="collectionCacheStrategies">
|
||||
* <props>
|
||||
* <prop key="com.mycompany.Order.items">read-write</prop>
|
||||
|
||||
@@ -28,7 +28,7 @@ import org.springframework.beans.factory.InitializingBean;
|
||||
* definition, as list element for the "typeDefinitions" bean property.
|
||||
* For example:
|
||||
*
|
||||
* <pre>
|
||||
* <pre class="code">
|
||||
* <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
|
||||
* ...
|
||||
* <property name="typeDefinitions">
|
||||
|
||||
@@ -30,7 +30,7 @@ import org.springframework.aop.support.AopUtils;
|
||||
*
|
||||
* <p>Usage example:
|
||||
*
|
||||
* <pre>
|
||||
* <pre class="code">
|
||||
* <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
|
||||
* ...
|
||||
* <property name="entityInterceptor">
|
||||
|
||||
@@ -81,7 +81,7 @@ import org.springframework.util.CollectionUtils;
|
||||
*
|
||||
* <p>For example, in case of <a href="http://www.jpox.org">JPOX</a>:
|
||||
*
|
||||
* <p><pre>
|
||||
* <p><pre class="code">
|
||||
* <bean id="persistenceManagerFactory" class="org.jpox.PersistenceManagerFactoryImpl" destroy-method="close">
|
||||
* <property name="connectionFactory" ref="dataSource"/>
|
||||
* <property name="nontransactionalRead" value="true"/>
|
||||
|
||||
Reference in New Issue
Block a user