mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 14:09:25 +00:00
Revise setPersistenceUnitName javadoc
Closes gh-36205
(cherry picked from commit 22cf7958a5)
This commit is contained in:
+5
-5
@@ -69,7 +69,7 @@ import org.springframework.util.CollectionUtils;
|
||||
* a Spring application context.
|
||||
*
|
||||
* <p>Encapsulates the common functionality between the different JPA bootstrap
|
||||
* contracts (standalone as well as container).
|
||||
* contracts: standalone as well as container.
|
||||
*
|
||||
* <p>Implements support for standard JPA configuration conventions as well as
|
||||
* Spring's customizable {@link JpaVendorAdapter} mechanism, and controls the
|
||||
@@ -178,10 +178,10 @@ public abstract class AbstractEntityManagerFactoryBean implements
|
||||
}
|
||||
|
||||
/**
|
||||
* Specify the name of the EntityManagerFactory configuration.
|
||||
* <p>Default is none, indicating the default EntityManagerFactory
|
||||
* configuration. The persistence provider will throw an exception if
|
||||
* ambiguous EntityManager configurations are found.
|
||||
* Specify the name of the persistence unit configuration to use.
|
||||
* <p>Default is none, indicating the default persistence unit configuration.
|
||||
* The persistence provider will throw an exception if ambiguous persistence
|
||||
* unit configurations are found.
|
||||
* @see jakarta.persistence.Persistence#createEntityManagerFactory(String)
|
||||
*/
|
||||
public void setPersistenceUnitName(@Nullable String persistenceUnitName) {
|
||||
|
||||
+4
-3
@@ -133,9 +133,10 @@ public class LocalContainerEntityManagerFactoryBean extends AbstractEntityManage
|
||||
}
|
||||
|
||||
/**
|
||||
* Uses the specified persistence unit name as the name of the default
|
||||
* persistence unit, if applicable.
|
||||
* <p><b>NOTE: Only applied if no external PersistenceUnitManager specified.</b>
|
||||
* Specify the name of the persistence unit configuration to use.
|
||||
* <p>Uses the specified persistence unit name as the name of the
|
||||
* default persistence unit, if applicable. Otherwise, it selects
|
||||
* among the available persistence units.
|
||||
* @see DefaultPersistenceUnitManager#setDefaultPersistenceUnitName
|
||||
*/
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user