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