Minor polishing after previous polish step ;-)

This commit is contained in:
Juergen Hoeller 2014-01-28 17:16:01 +01:00
parent 63e023173b
commit 786e217991
2 changed files with 1 additions and 1 deletions

View File

@ -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;

View File

@ -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) {