fixed JPA multi-unit setup example (SPR-6781)

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2878 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Juergen Hoeller
2010-01-31 12:59:59 +00:00
parent 04bed0c1d7
commit 0887e0f2f8
+2 -1
View File
@@ -1523,7 +1523,7 @@ TR: REVISED, PLS REVIEW. Should be *inside your war*. --><!-- </para>
files.)</para>
<programlisting language="xml">&lt;bean id="pum" class="org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager"&gt;
&lt;property name="persistenceXmlLocation"&gt;
&lt;property name="persistenceXmlLocations"&gt;
&lt;list&gt;
&lt;value&gt;org/springframework/orm/jpa/domain/persistence-multi.xml&lt;/value&gt;
&lt;value&gt;classpath:/my/package/**/custom-persistence.xml&lt;/value&gt;
@@ -1542,6 +1542,7 @@ TR: REVISED, PLS REVIEW. Should be *inside your war*. --><!-- </para>
&lt;bean id="emf" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"&gt;
&lt;property name="persistenceUnitManager" ref="pum"/&gt;
&lt;property name="persistenceUnitName" value="myCustomUnit"/&gt;
&lt;/bean&gt;</programlisting>
<para>The default implementation allows customization of the