Skip to content

Commit f1ab37c

Browse files
committed
Renamed setDefaultPersistenceUnitRootLocation to setPersistenceUnitRootLocation
1 parent b4db161 commit f1ab37c

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

spring-orm/src/main/java/org/springframework/orm/jpa/LocalContainerEntityManagerFactoryBean.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,15 @@ public void setPersistenceUnitName(String persistenceUnitName) {
144144
}
145145

146146
/**
147-
* Set the default persistence unit root location, to be applied
148-
* if no unit-specific persistence unit root could be determined.
149-
* <p><b>NOTE: Only applied if no external PersistenceUnitManager specified.</b>
147+
* Set a persistence unit root location for the default persistence unit.
150148
* <p>Default is "classpath:", that is, the root of the current classpath
151149
* (nearest root directory). To be overridden if unit-specific resolution
152150
* does not work and the classpath root is not appropriate either.
151+
* <p><b>NOTE: Only applied if no external PersistenceUnitManager specified.</b>
152+
* @since 4.3.3
153+
* @see DefaultPersistenceUnitManager#setDefaultPersistenceUnitRootLocation
153154
*/
154-
public void setDefaultPersistenceUnitRootLocation(String defaultPersistenceUnitRootLocation) {
155+
public void setPersistenceUnitRootLocation(String defaultPersistenceUnitRootLocation) {
155156
this.internalPersistenceUnitManager.setDefaultPersistenceUnitRootLocation(defaultPersistenceUnitRootLocation);
156157
}
157158

@@ -214,6 +215,7 @@ public void setMappingResources(String... mappingResources) {
214215
* Specify the JPA 2.0 shared cache mode for this persistence unit,
215216
* overriding a value in {@code persistence.xml} if set.
216217
* <p><b>NOTE: Only applied if no external PersistenceUnitManager specified.</b>
218+
* @since 4.0
217219
* @see javax.persistence.spi.PersistenceUnitInfo#getSharedCacheMode()
218220
* @see #setPersistenceUnitManager
219221
*/
@@ -225,6 +227,7 @@ public void setSharedCacheMode(SharedCacheMode sharedCacheMode) {
225227
* Specify the JPA 2.0 validation mode for this persistence unit,
226228
* overriding a value in {@code persistence.xml} if set.
227229
* <p><b>NOTE: Only applied if no external PersistenceUnitManager specified.</b>
230+
* @since 4.0
228231
* @see javax.persistence.spi.PersistenceUnitInfo#getValidationMode()
229232
* @see #setPersistenceUnitManager
230233
*/

spring-orm/src/main/java/org/springframework/orm/jpa/persistenceunit/DefaultPersistenceUnitManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ public void setMappingResources(String... mappingResources) {
252252
/**
253253
* Specify the JPA 2.0 shared cache mode for all of this manager's persistence
254254
* units, overriding any value in {@code persistence.xml} if set.
255+
* @since 4.0
255256
* @see javax.persistence.spi.PersistenceUnitInfo#getSharedCacheMode()
256257
*/
257258
public void setSharedCacheMode(SharedCacheMode sharedCacheMode) {
@@ -261,6 +262,7 @@ public void setSharedCacheMode(SharedCacheMode sharedCacheMode) {
261262
/**
262263
* Specify the JPA 2.0 validation mode for all of this manager's persistence
263264
* units, overriding any value in {@code persistence.xml} if set.
265+
* @since 4.0
264266
* @see javax.persistence.spi.PersistenceUnitInfo#getValidationMode()
265267
*/
266268
public void setValidationMode(ValidationMode validationMode) {

0 commit comments

Comments
 (0)