Merge branch '5.3.x'

# Conflicts:
#	spring-jdbc/src/main/java/org/springframework/jdbc/datasource/DriverManagerDataSource.java
#	spring-orm/src/main/java/org/springframework/orm/jpa/JpaVendorAdapter.java
This commit is contained in:
Sam Brannen
2022-07-13 13:46:34 +02:00
49 changed files with 88 additions and 88 deletions

View File

@@ -142,7 +142,7 @@ public class OpenSessionInViewInterceptor implements AsyncWebRequestInterceptor
}
/**
* Unbind the Hibernate {@code Session} from the thread and close it).
* Unbind the Hibernate {@code Session} from the thread and close it.
* @see TransactionSynchronizationManager
*/
@Override

View File

@@ -218,10 +218,10 @@ public abstract class AbstractEntityManagerFactoryBean implements
}
/**
* Allow Map access to the JPA properties to be passed to the persistence
* Allow {@code Map} access to the JPA properties to be passed to the persistence
* provider, with the option to add or override specific entries.
* <p>Useful for specifying entries directly, for example via
* "jpaPropertyMap[myKey]".
* {@code jpaPropertyMap[myKey]}.
*/
public Map<String, Object> getJpaPropertyMap() {
return this.jpaPropertyMap;

View File

@@ -130,9 +130,9 @@ public abstract class EntityManagerFactoryAccessor implements BeanFactoryAware {
}
/**
* Allow Map access to the JPA properties to be passed to the persistence
* Allow {@code Map} access to the JPA properties to be passed to the persistence
* provider, with the option to add or override specific entries.
* <p>Useful for specifying entries directly, for example via "jpaPropertyMap[myKey]".
* <p>Useful for specifying entries directly, for example via {@code jpaPropertyMap[myKey]}.
*/
public Map<String, Object> getJpaPropertyMap() {
return this.jpaPropertyMap;

View File

@@ -37,7 +37,7 @@ public interface EntityManagerProxy extends EntityManager {
* raw EntityManager.
* <p>In case of a shared ("transactional") EntityManager, this will be
* the raw EntityManager that is currently associated with the transaction.
* Outside of a transaction, an IllegalStateException will be thrown.
* Outside a transaction, an IllegalStateException will be thrown.
* @return the underlying raw EntityManager (never {@code null})
* @throws IllegalStateException if no underlying EntityManager is available
*/

View File

@@ -49,7 +49,7 @@ import org.springframework.util.ConcurrentReferenceHashMap;
* Delegate for creating a variety of {@link jakarta.persistence.EntityManager}
* proxies that follow the JPA spec's semantics for "extended" EntityManagers.
*
* <p>Supports several different variants of "extended" EntityManagers:
* <p>Supports several variants of "extended" EntityManagers:
* in particular, an "application-managed extended EntityManager", as defined
* by {@link jakarta.persistence.EntityManagerFactory#createEntityManager()},
* as well as a "container-managed extended EntityManager", as defined by

View File

@@ -229,9 +229,9 @@ public class JpaTransactionManager extends AbstractPlatformTransactionManager
}
/**
* Allow Map access to the JPA properties to be passed to the persistence
* Allow {@code Map} access to the JPA properties to be passed to the persistence
* provider, with the option to add or override specific entries.
* <p>Useful for specifying entries directly, for example via "jpaPropertyMap[myKey]".
* <p>Useful for specifying entries directly, for example via {@code jpaPropertyMap[myKey]}.
*/
public Map<String, Object> getJpaPropertyMap() {
return this.jpaPropertyMap;

View File

@@ -66,7 +66,7 @@ public interface JpaVendorAdapter {
* to unit-specific characteristics such as the transaction type.
* <p><b>NOTE:</b> This variant will only be invoked in case of Jakarta EE style
* container bootstrapping where a {@link PersistenceUnitInfo} is present
* (i.e. {@link LocalContainerEntityManagerFactoryBean}. In case of simple
* (i.e. {@link LocalContainerEntityManagerFactoryBean}). In case of simple
* Java SE style bootstrapping via {@link jakarta.persistence.Persistence}
* (i.e. {@link LocalEntityManagerFactoryBean}), the parameter-less
* {@link #getJpaPropertyMap()} variant will be called directly.

View File

@@ -118,7 +118,7 @@ public class ApplicationManagedEntityManagerIntegrationTests extends AbstractEnt
doInstantiateAndSave(em);
setComplete();
endTransaction(); // Should rollback
endTransaction(); // Should roll back
assertThat(countRowsInTable(em, "person")).as("Tx must have committed back").isEqualTo(1);
// Now clean up the database
@@ -138,7 +138,7 @@ public class ApplicationManagedEntityManagerIntegrationTests extends AbstractEnt
EntityManager em = entityManagerFactory.createEntityManager();
em.joinTransaction();
doInstantiateAndSave(em);
endTransaction(); // Should rollback
endTransaction(); // Should roll back
assertThat(countRowsInTable(em, "person")).as("Tx must have been rolled back").isEqualTo(0);
}
@@ -149,7 +149,7 @@ public class ApplicationManagedEntityManagerIntegrationTests extends AbstractEnt
doInstantiateAndSave(em);
setComplete();
endTransaction(); // Should rollback
endTransaction(); // Should roll back
assertThat(countRowsInTable(em, "person")).as("Tx must have committed back").isEqualTo(1);
// Now clean up the database

View File

@@ -138,7 +138,7 @@ public class ContainerManagedEntityManagerIntegrationTests extends AbstractEntit
doInstantiateAndSave(em);
setComplete();
endTransaction(); // Should rollback
endTransaction(); // Should roll back
assertThat(countRowsInTable(em, "person")).as("Tx must have committed back").isEqualTo(1);
// Now clean up the database
@@ -149,7 +149,7 @@ public class ContainerManagedEntityManagerIntegrationTests extends AbstractEntit
public void testRollbackOccurs() {
EntityManager em = createContainerManagedEntityManager();
doInstantiateAndSave(em);
endTransaction(); // Should rollback
endTransaction(); // Should roll back
assertThat(countRowsInTable(em, "person")).as("Tx must have been rolled back").isEqualTo(0);
}
@@ -158,7 +158,7 @@ public class ContainerManagedEntityManagerIntegrationTests extends AbstractEntit
EntityManager em = createContainerManagedEntityManager();
doInstantiateAndSave(em);
setComplete();
endTransaction(); // Should rollback
endTransaction(); // Should roll back
assertThat(countRowsInTable(em, "person")).as("Tx must have committed back").isEqualTo(1);
// Now clean up the database

View File

@@ -31,7 +31,7 @@ import org.springframework.beans.testfixture.beans.TestBean;
import org.springframework.context.ApplicationContext;
/**
* Simple JavaBean domain object representing an person.
* Simple JavaBean domain object representing a person.
*
* @author Rod Johnson
*/