@@ -144,14 +144,15 @@ public void setPersistenceUnitName(String persistenceUnitName) {
144
144
}
145
145
146
146
/**
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.
150
148
* <p>Default is "classpath:", that is, the root of the current classpath
151
149
* (nearest root directory). To be overridden if unit-specific resolution
152
150
* 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
153
154
*/
154
- public void setDefaultPersistenceUnitRootLocation (String defaultPersistenceUnitRootLocation ) {
155
+ public void setPersistenceUnitRootLocation (String defaultPersistenceUnitRootLocation ) {
155
156
this .internalPersistenceUnitManager .setDefaultPersistenceUnitRootLocation (defaultPersistenceUnitRootLocation );
156
157
}
157
158
@@ -214,6 +215,7 @@ public void setMappingResources(String... mappingResources) {
214
215
* Specify the JPA 2.0 shared cache mode for this persistence unit,
215
216
* overriding a value in {@code persistence.xml} if set.
216
217
* <p><b>NOTE: Only applied if no external PersistenceUnitManager specified.</b>
218
+ * @since 4.0
217
219
* @see javax.persistence.spi.PersistenceUnitInfo#getSharedCacheMode()
218
220
* @see #setPersistenceUnitManager
219
221
*/
@@ -225,6 +227,7 @@ public void setSharedCacheMode(SharedCacheMode sharedCacheMode) {
225
227
* Specify the JPA 2.0 validation mode for this persistence unit,
226
228
* overriding a value in {@code persistence.xml} if set.
227
229
* <p><b>NOTE: Only applied if no external PersistenceUnitManager specified.</b>
230
+ * @since 4.0
228
231
* @see javax.persistence.spi.PersistenceUnitInfo#getValidationMode()
229
232
* @see #setPersistenceUnitManager
230
233
*/
0 commit comments