mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-10 00:59:01 +00:00
Polishing
This commit is contained in:
+2
-2
@@ -247,7 +247,7 @@ public class LocalSessionFactoryBean extends HibernateExceptionTranslator
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a Hibernate 5 {@link ImplicitNamingStrategy} for the SessionFactory.
|
||||
* Set a Hibernate {@link ImplicitNamingStrategy} for the SessionFactory.
|
||||
* @see Configuration#setImplicitNamingStrategy
|
||||
*/
|
||||
public void setImplicitNamingStrategy(ImplicitNamingStrategy implicitNamingStrategy) {
|
||||
@@ -255,7 +255,7 @@ public class LocalSessionFactoryBean extends HibernateExceptionTranslator
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a Hibernate 5 {@link PhysicalNamingStrategy} for the SessionFactory.
|
||||
* Set a Hibernate {@link PhysicalNamingStrategy} for the SessionFactory.
|
||||
* @see Configuration#setPhysicalNamingStrategy
|
||||
*/
|
||||
public void setPhysicalNamingStrategy(PhysicalNamingStrategy physicalNamingStrategy) {
|
||||
|
||||
+1
-1
@@ -60,7 +60,7 @@ class ClassFileTransformerAdapter implements ClassFileTransformer {
|
||||
synchronized (this) {
|
||||
if (this.currentlyTransforming) {
|
||||
// Defensively back out when called from within the transform delegate below:
|
||||
// in particular, for the over-eager transformer implementation in Hibernate 5.
|
||||
// in particular, for the over-eager transformer implementation in Hibernate.
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -89,7 +89,7 @@ public abstract class AbstractJpaVendorAdapter implements JpaVendorAdapter {
|
||||
* <p><b>NOTE: Do not set this flag to 'true' while also setting JPA's
|
||||
* {@code jakarta.persistence.schema-generation.database.action} property.</b>
|
||||
* These two schema generation mechanisms - standard JPA versus provider-native -
|
||||
* are mutually exclusive, for example, with Hibernate 5.
|
||||
* are mutually exclusive, for example, with Hibernate.
|
||||
* @see org.springframework.orm.jpa.AbstractEntityManagerFactoryBean#setJpaProperties
|
||||
*/
|
||||
public void setGenerateDdl(boolean generateDdl) {
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ import org.springframework.orm.jpa.persistenceunit.SmartPersistenceUnitInfo;
|
||||
class SpringHibernateJpaPersistenceProvider extends HibernatePersistenceProvider {
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({"rawtypes", "unchecked"}) // on Hibernate 6
|
||||
@SuppressWarnings({"rawtypes", "unchecked"})
|
||||
public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, Map properties) {
|
||||
final List<String> mergedClassesAndPackages = new ArrayList<>(info.getManagedClassNames());
|
||||
if (info instanceof SmartPersistenceUnitInfo smartInfo) {
|
||||
|
||||
Reference in New Issue
Block a user