diff --git a/org.springframework.orm/src/main/java/org/springframework/orm/jpa/JpaAccessor.java b/org.springframework.orm/src/main/java/org/springframework/orm/jpa/JpaAccessor.java
index 1cb88c0128..3a823fe9b7 100644
--- a/org.springframework.orm/src/main/java/org/springframework/orm/jpa/JpaAccessor.java
+++ b/org.springframework.orm/src/main/java/org/springframework/orm/jpa/JpaAccessor.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2009 the original author or authors.
+ * Copyright 2002-2011 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.
@@ -39,7 +39,10 @@ import org.springframework.dao.support.DataAccessUtils;
* @see JpaTemplate
* @see JpaInterceptor
* @see JpaDialect
+ * @deprecated as of Spring 3.1, in favor of native EntityManager usage
+ * (typically obtained through @PersistenceContext)
*/
+@Deprecated
public abstract class JpaAccessor extends EntityManagerFactoryAccessor implements InitializingBean {
private EntityManager entityManager;
diff --git a/org.springframework.orm/src/main/java/org/springframework/orm/jpa/JpaCallback.java b/org.springframework.orm/src/main/java/org/springframework/orm/jpa/JpaCallback.java
index deaab1e22e..7802c4473b 100644
--- a/org.springframework.orm/src/main/java/org/springframework/orm/jpa/JpaCallback.java
+++ b/org.springframework.orm/src/main/java/org/springframework/orm/jpa/JpaCallback.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2009 the original author or authors.
+ * Copyright 2002-2011 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.
@@ -29,7 +29,10 @@ import javax.persistence.PersistenceException;
* @since 2.0
* @see org.springframework.orm.jpa.JpaTemplate
* @see org.springframework.orm.jpa.JpaTransactionManager
+ * @deprecated as of Spring 3.1, in favor of native EntityManager usage
+ * (typically obtained through @PersistenceContext)
*/
+@Deprecated
public interface JpaCallback {
/**
diff --git a/org.springframework.orm/src/main/java/org/springframework/orm/jpa/JpaInterceptor.java b/org.springframework.orm/src/main/java/org/springframework/orm/jpa/JpaInterceptor.java
index ea68dcfc8f..3d5c3a62e7 100644
--- a/org.springframework.orm/src/main/java/org/springframework/orm/jpa/JpaInterceptor.java
+++ b/org.springframework.orm/src/main/java/org/springframework/orm/jpa/JpaInterceptor.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2008 the original author or authors.
+ * Copyright 2002-2011 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.
@@ -62,7 +62,12 @@ import org.springframework.transaction.support.TransactionSynchronizationManager
* @since 2.0
* @see JpaTransactionManager
* @see JpaTemplate
+ * @deprecated as of Spring 3.1, in favor of native EntityManager usage
+ * (typically obtained through @PersistenceContext) and
+ * AOP-driven exception translation through
+ * {@link org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor}
*/
+@Deprecated
public class JpaInterceptor extends JpaAccessor implements MethodInterceptor {
private boolean exceptionConversionEnabled = true;
diff --git a/org.springframework.orm/src/main/java/org/springframework/orm/jpa/JpaOperations.java b/org.springframework.orm/src/main/java/org/springframework/orm/jpa/JpaOperations.java
index 321b4c167c..1d7de7954b 100644
--- a/org.springframework.orm/src/main/java/org/springframework/orm/jpa/JpaOperations.java
+++ b/org.springframework.orm/src/main/java/org/springframework/orm/jpa/JpaOperations.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2008 the original author or authors.
+ * Copyright 2002-2011 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.
@@ -46,7 +46,11 @@ import org.springframework.dao.DataAccessException;
* @see JpaDialect
* @see org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter
* @see org.springframework.orm.jpa.support.OpenEntityManagerInViewInterceptor
+ * @deprecated as of Spring 3.1, in favor of native EntityManager usage
+ * (typically obtained through @PersistenceContext).
+ * Note that this interface did not get upgraded to JPA 2.0 and never will.
*/
+@Deprecated
public interface JpaOperations {
T execute(JpaCallback action) throws DataAccessException;
diff --git a/org.springframework.orm/src/main/java/org/springframework/orm/jpa/JpaTemplate.java b/org.springframework.orm/src/main/java/org/springframework/orm/jpa/JpaTemplate.java
index 79727cea83..a0422e1972 100644
--- a/org.springframework.orm/src/main/java/org/springframework/orm/jpa/JpaTemplate.java
+++ b/org.springframework.orm/src/main/java/org/springframework/orm/jpa/JpaTemplate.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2009 the original author or authors.
+ * Copyright 2002-2011 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.
@@ -85,7 +85,11 @@ import org.springframework.util.ClassUtils;
* @see org.springframework.transaction.jta.JtaTransactionManager
* @see org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter
* @see org.springframework.orm.jpa.support.OpenEntityManagerInViewInterceptor
+ * @deprecated as of Spring 3.1, in favor of native EntityManager usage
+ * (typically obtained through @PersistenceContext)
+ * Note that this class did not get upgraded to JPA 2.0 and never will.
*/
+@Deprecated
public class JpaTemplate extends JpaAccessor implements JpaOperations {
private boolean exposeNativeEntityManager = false;
diff --git a/org.springframework.orm/src/main/java/org/springframework/orm/jpa/support/JpaDaoSupport.java b/org.springframework.orm/src/main/java/org/springframework/orm/jpa/support/JpaDaoSupport.java
index e53e8e1219..2463146789 100644
--- a/org.springframework.orm/src/main/java/org/springframework/orm/jpa/support/JpaDaoSupport.java
+++ b/org.springframework.orm/src/main/java/org/springframework/orm/jpa/support/JpaDaoSupport.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2008 the original author or authors.
+ * Copyright 2002-2011 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.
@@ -43,7 +43,10 @@ import org.springframework.orm.jpa.JpaTemplate;
* @see #createJpaTemplate
* @see #setJpaTemplate
* @see org.springframework.orm.jpa.JpaTemplate
+ * @deprecated as of Spring 3.1, in favor of native EntityManager usage
+ * (typically obtained through @PersistenceContext)
*/
+@Deprecated
public abstract class JpaDaoSupport extends DaoSupport {
private JpaTemplate jpaTemplate;