Renamed setDefaultPersistenceUnitRootLocation to setPersistenceUnitRootLocation

(cherry picked from commit f1ab37c)
This commit is contained in:
Juergen Hoeller 2016-08-17 22:12:47 +02:00
parent af53f3d6cf
commit 6eab5622c7
2 changed files with 9 additions and 4 deletions

View File

@ -144,14 +144,15 @@ public class LocalContainerEntityManagerFactoryBean extends AbstractEntityManage
} }
/** /**
* Set the default persistence unit root location, to be applied * Set a persistence unit root location for the default persistence unit.
* if no unit-specific persistence unit root could be determined.
* <p><b>NOTE: Only applied if no external PersistenceUnitManager specified.</b>
* <p>Default is "classpath:", that is, the root of the current classpath * <p>Default is "classpath:", that is, the root of the current classpath
* (nearest root directory). To be overridden if unit-specific resolution * (nearest root directory). To be overridden if unit-specific resolution
* does not work and the classpath root is not appropriate either. * does not work and the classpath root is not appropriate either.
* <p><b>NOTE: Only applied if no external PersistenceUnitManager specified.</b>
* @since 4.3.3
* @see DefaultPersistenceUnitManager#setDefaultPersistenceUnitRootLocation
*/ */
public void setDefaultPersistenceUnitRootLocation(String defaultPersistenceUnitRootLocation) { public void setPersistenceUnitRootLocation(String defaultPersistenceUnitRootLocation) {
this.internalPersistenceUnitManager.setDefaultPersistenceUnitRootLocation(defaultPersistenceUnitRootLocation); this.internalPersistenceUnitManager.setDefaultPersistenceUnitRootLocation(defaultPersistenceUnitRootLocation);
} }
@ -214,6 +215,7 @@ public class LocalContainerEntityManagerFactoryBean extends AbstractEntityManage
* Specify the JPA 2.0 shared cache mode for this persistence unit, * Specify the JPA 2.0 shared cache mode for this persistence unit,
* overriding a value in {@code persistence.xml} if set. * overriding a value in {@code persistence.xml} if set.
* <p><b>NOTE: Only applied if no external PersistenceUnitManager specified.</b> * <p><b>NOTE: Only applied if no external PersistenceUnitManager specified.</b>
* @since 4.0
* @see javax.persistence.spi.PersistenceUnitInfo#getSharedCacheMode() * @see javax.persistence.spi.PersistenceUnitInfo#getSharedCacheMode()
* @see #setPersistenceUnitManager * @see #setPersistenceUnitManager
*/ */
@ -225,6 +227,7 @@ public class LocalContainerEntityManagerFactoryBean extends AbstractEntityManage
* Specify the JPA 2.0 validation mode for this persistence unit, * Specify the JPA 2.0 validation mode for this persistence unit,
* overriding a value in {@code persistence.xml} if set. * overriding a value in {@code persistence.xml} if set.
* <p><b>NOTE: Only applied if no external PersistenceUnitManager specified.</b> * <p><b>NOTE: Only applied if no external PersistenceUnitManager specified.</b>
* @since 4.0
* @see javax.persistence.spi.PersistenceUnitInfo#getValidationMode() * @see javax.persistence.spi.PersistenceUnitInfo#getValidationMode()
* @see #setPersistenceUnitManager * @see #setPersistenceUnitManager
*/ */

View File

@ -261,6 +261,7 @@ public class DefaultPersistenceUnitManager
/** /**
* Specify the JPA 2.0 shared cache mode for all of this manager's persistence * Specify the JPA 2.0 shared cache mode for all of this manager's persistence
* units, overriding any value in {@code persistence.xml} if set. * units, overriding any value in {@code persistence.xml} if set.
* @since 4.0
* @see javax.persistence.spi.PersistenceUnitInfo#getSharedCacheMode() * @see javax.persistence.spi.PersistenceUnitInfo#getSharedCacheMode()
*/ */
public void setSharedCacheMode(SharedCacheMode sharedCacheMode) { public void setSharedCacheMode(SharedCacheMode sharedCacheMode) {
@ -270,6 +271,7 @@ public class DefaultPersistenceUnitManager
/** /**
* Specify the JPA 2.0 validation mode for all of this manager's persistence * Specify the JPA 2.0 validation mode for all of this manager's persistence
* units, overriding any value in {@code persistence.xml} if set. * units, overriding any value in {@code persistence.xml} if set.
* @since 4.0
* @see javax.persistence.spi.PersistenceUnitInfo#getValidationMode() * @see javax.persistence.spi.PersistenceUnitInfo#getValidationMode()
*/ */
public void setValidationMode(ValidationMode validationMode) { public void setValidationMode(ValidationMode validationMode) {