fixed JPA multi-unit setup example (SPR-6781)
This commit is contained in:
@@ -1523,7 +1523,7 @@ TR: REVISED, PLS REVIEW. Should be *inside your war*. --><!-- </para>
|
|||||||
files.)</para>
|
files.)</para>
|
||||||
|
|
||||||
<programlisting language="xml"><bean id="pum" class="org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager">
|
<programlisting language="xml"><bean id="pum" class="org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager">
|
||||||
<property name="persistenceXmlLocation">
|
<property name="persistenceXmlLocations">
|
||||||
<list>
|
<list>
|
||||||
<value>org/springframework/orm/jpa/domain/persistence-multi.xml</value>
|
<value>org/springframework/orm/jpa/domain/persistence-multi.xml</value>
|
||||||
<value>classpath:/my/package/**/custom-persistence.xml</value>
|
<value>classpath:/my/package/**/custom-persistence.xml</value>
|
||||||
@@ -1542,6 +1542,7 @@ TR: REVISED, PLS REVIEW. Should be *inside your war*. --><!-- </para>
|
|||||||
|
|
||||||
<bean id="emf" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
|
<bean id="emf" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
|
||||||
<property name="persistenceUnitManager" ref="pum"/>
|
<property name="persistenceUnitManager" ref="pum"/>
|
||||||
|
<property name="persistenceUnitName" value="myCustomUnit"/>
|
||||||
</bean></programlisting>
|
</bean></programlisting>
|
||||||
|
|
||||||
<para>The default implementation allows customization of the
|
<para>The default implementation allows customization of the
|
||||||
|
|||||||
Reference in New Issue
Block a user