Browse Source

polishing

pull/23217/head
Juergen Hoeller 17 years ago
parent
commit
ee1c68ead4
  1. 2
      org.springframework.orm/src/main/java/org/springframework/orm/hibernate3/HibernateTransactionManager.java
  2. 5
      org.springframework.orm/src/main/java/org/springframework/orm/hibernate3/annotation/AnnotationSessionFactoryBean.java
  3. 7
      org.springframework.orm/src/main/java/org/springframework/orm/jpa/vendor/HibernateJpaVendorAdapter.java

2
org.springframework.orm/src/main/java/org/springframework/orm/hibernate3/HibernateTransactionManager.java

@ -539,7 +539,7 @@ public class HibernateTransactionManager extends AbstractPlatformTransactionMana
} }
} }
Transaction hibTx = null; Transaction hibTx;
// Register transaction timeout. // Register transaction timeout.
int timeout = determineTimeout(definition); int timeout = determineTimeout(definition);

5
org.springframework.orm/src/main/java/org/springframework/orm/hibernate3/annotation/AnnotationSessionFactoryBean.java

@ -44,7 +44,7 @@ import org.springframework.util.ClassUtils;
* Subclass of Spring's standard LocalSessionFactoryBean for Hibernate, * Subclass of Spring's standard LocalSessionFactoryBean for Hibernate,
* supporting JDK 1.5+ annotation metadata for mappings. * supporting JDK 1.5+ annotation metadata for mappings.
* *
* <p>Note: This class requires Hibernate 3.2 or higher, with the * <p>Note: This class requires Hibernate 3.2 or later, with the
* Java Persistence API and the Hibernate Annotations add-on present. * Java Persistence API and the Hibernate Annotations add-on present.
* *
* <p>Example for an AnnotationSessionFactoryBean bean definition: * <p>Example for an AnnotationSessionFactoryBean bean definition:
@ -240,8 +240,7 @@ public class AnnotationSessionFactoryBean extends LocalSessionFactoryBean implem
* @param config the current AnnotationConfiguration object * @param config the current AnnotationConfiguration object
* @throws HibernateException in case of Hibernate initialization errors * @throws HibernateException in case of Hibernate initialization errors
*/ */
protected void postProcessAnnotationConfiguration(AnnotationConfiguration config) protected void postProcessAnnotationConfiguration(AnnotationConfiguration config) throws HibernateException {
throws HibernateException {
} }
} }

7
org.springframework.orm/src/main/java/org/springframework/orm/jpa/vendor/HibernateJpaVendorAdapter.java vendored

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2008 the original author or authors. * Copyright 2002-2009 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -16,9 +16,8 @@
package org.springframework.orm.jpa.vendor; package org.springframework.orm.jpa.vendor;
import java.util.Map;
import java.util.Properties;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map;
import javax.persistence.EntityManager; import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory; import javax.persistence.EntityManagerFactory;
import javax.persistence.spi.PersistenceProvider; import javax.persistence.spi.PersistenceProvider;
@ -42,7 +41,7 @@ import org.springframework.orm.jpa.JpaDialect;
/** /**
* {@link org.springframework.orm.jpa.JpaVendorAdapter} implementation for * {@link org.springframework.orm.jpa.JpaVendorAdapter} implementation for
* Hibernate EntityManager. Developed and tested against Hibernate 3.2 and 3.3. * Hibernate EntityManager. Developed and tested against Hibernate 3.3.
* *
* <p>Exposes Hibernate's persistence provider and EntityManager extension interface, * <p>Exposes Hibernate's persistence provider and EntityManager extension interface,
* and supports {@link AbstractJpaVendorAdapter}'s common configuration settings. * and supports {@link AbstractJpaVendorAdapter}'s common configuration settings.

Loading…
Cancel
Save