Browse Source

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
pull/1/head
Juergen Hoeller 16 years ago
parent
commit
0887e0f2f8
  1. 3
      spring-framework-reference/src/orm.xml

3
spring-framework-reference/src/orm.xml

@ -1523,7 +1523,7 @@ TR: REVISED, PLS REVIEW. Should be *inside your war*. --><!-- </para> @@ -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> @@ -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

Loading…
Cancel
Save