Removed outdated hibernate3 references across the codebase
Issue: SPR-9028
This commit is contained in:
parent
2410e29dda
commit
09e2e5897d
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -278,9 +278,7 @@ public class HibernateTransactionManager extends AbstractPlatformTransactionMana
|
|||
* Will get applied to any new Session created by this transaction manager.
|
||||
* <p>Such an interceptor can either be set at the SessionFactory level,
|
||||
* i.e. on LocalSessionFactoryBean, or at the Session level, i.e. on
|
||||
* HibernateTemplate, HibernateInterceptor, and HibernateTransactionManager.
|
||||
* It's preferable to set it on LocalSessionFactoryBean or HibernateTransactionManager
|
||||
* to avoid repeated configuration and guarantee consistent behavior in transactions.
|
||||
* HibernateTransactionManager.
|
||||
* @see LocalSessionFactoryBean#setEntityInterceptor
|
||||
*/
|
||||
public void setEntityInterceptor(Interceptor entityInterceptor) {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -40,13 +40,12 @@ import org.springframework.util.Assert;
|
|||
* candidate exceptions.
|
||||
*
|
||||
|
||||
* <p>All of Spring's applicable resource factories (e.g. {@link
|
||||
* org.springframework.orm.hibernate3.LocalSessionFactoryBean LocalSessionFactoryBean},
|
||||
* {@link org.springframework.orm.jpa.LocalEntityManagerFactoryBean
|
||||
* LocalEntityManagerFactoryBean}) implement the {@code PersistenceExceptionTranslator}
|
||||
* interface out of the box. As a consequence, all that is usually needed to enable
|
||||
* automatic exception translation is marking all affected beans (such as Repositories or
|
||||
* DAOs) with the {@code @Repository} annotation, along with defining this post-processor
|
||||
* <p>All of Spring's applicable resource factories (e.g.
|
||||
* {@link org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean})
|
||||
* implement the {@code PersistenceExceptionTranslator} interface out of the box.
|
||||
* As a consequence, all that is usually needed to enable automatic exception
|
||||
* translation is marking all affected beans (such as Repositories or DAOs)
|
||||
* with the {@code @Repository} annotation, along with defining this post-processor
|
||||
* as a bean in the application context.
|
||||
*
|
||||
* @author Rod Johnson
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -69,8 +69,7 @@ import org.springframework.transaction.PlatformTransactionManager;
|
|||
*
|
||||
* <p>The "preInterceptors" and "postInterceptors" properties can be set to add
|
||||
* additional interceptors to the mix, like
|
||||
* {@link org.springframework.aop.interceptor.PerformanceMonitorInterceptor} or
|
||||
* {@link org.springframework.orm.hibernate3.HibernateInterceptor}.
|
||||
* {@link org.springframework.aop.interceptor.PerformanceMonitorInterceptor}.
|
||||
*
|
||||
* <p><b>HINT:</b> This class is often used with parent / child bean definitions.
|
||||
* Typically, you will define the transaction manager and default transaction
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -34,7 +34,6 @@ import java.io.Flushable;
|
|||
* @see TransactionSynchronizationManager
|
||||
* @see AbstractPlatformTransactionManager
|
||||
* @see org.springframework.jdbc.datasource.DataSourceUtils#CONNECTION_SYNCHRONIZATION_ORDER
|
||||
* @see org.springframework.orm.hibernate3.SessionFactoryUtils#SESSION_SYNCHRONIZATION_ORDER
|
||||
*/
|
||||
public interface TransactionSynchronization extends Flushable {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -112,7 +112,7 @@ public abstract class AbstractHandlerMapping extends ApplicationObjectSupport im
|
|||
* @see #setInterceptors
|
||||
* @see org.springframework.web.context.request.WebRequestInterceptor
|
||||
* @see WebRequestHandlerInterceptorAdapter#WebRequestHandlerInterceptorAdapter(WebRequestInterceptor, boolean)
|
||||
* @see org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptor
|
||||
* @see org.springframework.orm.jpa.support.OpenEntityManagerInViewInterceptor
|
||||
*/
|
||||
public void setApplyWebRequestInterceptorsToRenderPhaseOnly(boolean applyWebRequestInterceptorsToRenderPhaseOnly) {
|
||||
this.applyWebRequestInterceptorsToRenderPhaseOnly = applyWebRequestInterceptorsToRenderPhaseOnly;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -80,10 +80,8 @@ import org.springframework.web.util.WebUtils;
|
|||
* @author Juergen Hoeller
|
||||
* @since 1.1.1
|
||||
* @see ServletWrappingController
|
||||
* @see org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptor
|
||||
* @see org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
|
||||
* @see org.springframework.orm.jdo.support.OpenPersistenceManagerInViewInterceptor
|
||||
* @see org.springframework.orm.jdo.support.OpenPersistenceManagerInViewFilter
|
||||
* @see org.springframework.orm.jpa.support.OpenEntityManagerInViewInterceptor
|
||||
* @see org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter
|
||||
*/
|
||||
public class ServletForwardingController extends AbstractController implements BeanNameAware {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -18,7 +18,6 @@ package org.springframework.web.servlet.mvc;
|
|||
|
||||
import java.util.Enumeration;
|
||||
import java.util.Properties;
|
||||
|
||||
import javax.servlet.Servlet;
|
||||
import javax.servlet.ServletConfig;
|
||||
import javax.servlet.ServletContext;
|
||||
|
|
@ -79,13 +78,11 @@ import org.springframework.web.servlet.ModelAndView;
|
|||
* @author Juergen Hoeller
|
||||
* @since 1.1.1
|
||||
* @see ServletForwardingController
|
||||
* @see org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptor
|
||||
* @see org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
|
||||
* @see org.springframework.orm.jdo.support.OpenPersistenceManagerInViewInterceptor
|
||||
* @see org.springframework.orm.jdo.support.OpenPersistenceManagerInViewFilter
|
||||
* @see org.springframework.orm.jpa.support.OpenEntityManagerInViewInterceptor
|
||||
* @see org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter
|
||||
*/
|
||||
public class ServletWrappingController extends AbstractController
|
||||
implements BeanNameAware, InitializingBean, DisposableBean {
|
||||
implements BeanNameAware, InitializingBean, DisposableBean {
|
||||
|
||||
private Class<?> servletClass;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue