Browse Source

Minor polishing after previous polish step ;-)

pull/455/head
Juergen Hoeller 11 years ago
parent
commit
786e217991
  1. 1
      spring-orm-hibernate4/src/main/java/org/springframework/orm/hibernate4/HibernateTemplate.java
  2. 1
      spring-orm-hibernate4/src/main/java/org/springframework/orm/hibernate4/LocalSessionFactoryBuilder.java

1
spring-orm-hibernate4/src/main/java/org/springframework/orm/hibernate4/HibernateTemplate.java

@ -144,7 +144,6 @@ public class HibernateTemplate implements HibernateOperations, InitializingBean @@ -144,7 +144,6 @@ public class HibernateTemplate implements HibernateOperations, InitializingBean
* Sessions (for example, within a transaction).
* @see #enableFilters(org.hibernate.Session)
* @see org.hibernate.Session#enableFilter(String)
* @see org.springframework.orm.hibernate3.LocalSessionFactoryBean#setFilterDefinitions(org.springframework.orm.hibernate3.FilterDefinition...)
*/
public void setFilterNames(String... filterNames) {
this.filterNames = filterNames;

1
spring-orm-hibernate4/src/main/java/org/springframework/orm/hibernate4/LocalSessionFactoryBuilder.java

@ -133,6 +133,7 @@ public class LocalSessionFactoryBuilder extends Configuration { @@ -133,6 +133,7 @@ public class LocalSessionFactoryBuilder extends Configuration {
* (may be {@code null})
* @param resourceLoader the ResourceLoader to load application classes from
*/
@SuppressWarnings("deprecation") // to be able to build against Hibernate 4.3
public LocalSessionFactoryBuilder(DataSource dataSource, ResourceLoader resourceLoader) {
getProperties().put(Environment.CURRENT_SESSION_CONTEXT_CLASS, SpringSessionContext.class.getName());
if (dataSource != null) {

Loading…
Cancel
Save