File tree Expand file tree Collapse file tree 6 files changed +28
-6
lines changed
org.springframework.orm/src/main/java/org/springframework/orm/jpa Expand file tree Collapse file tree 6 files changed +28
-6
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2009 the original author or authors.
2
+ * Copyright 2002-2011 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
39
39
* @see JpaTemplate
40
40
* @see JpaInterceptor
41
41
* @see JpaDialect
42
+ * @deprecated as of Spring 3.1, in favor of native EntityManager usage
43
+ * (typically obtained through <code>@PersistenceContext</code>)
42
44
*/
45
+ @ Deprecated
43
46
public abstract class JpaAccessor extends EntityManagerFactoryAccessor implements InitializingBean {
44
47
45
48
private EntityManager entityManager ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2009 the original author or authors.
2
+ * Copyright 2002-2011 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
29
29
* @since 2.0
30
30
* @see org.springframework.orm.jpa.JpaTemplate
31
31
* @see org.springframework.orm.jpa.JpaTransactionManager
32
+ * @deprecated as of Spring 3.1, in favor of native EntityManager usage
33
+ * (typically obtained through <code>@PersistenceContext</code>)
32
34
*/
35
+ @ Deprecated
33
36
public interface JpaCallback <T > {
34
37
35
38
/**
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2008 the original author or authors.
2
+ * Copyright 2002-2011 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
62
62
* @since 2.0
63
63
* @see JpaTransactionManager
64
64
* @see JpaTemplate
65
+ * @deprecated as of Spring 3.1, in favor of native EntityManager usage
66
+ * (typically obtained through <code>@PersistenceContext</code>) and
67
+ * AOP-driven exception translation through
68
+ * {@link org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor}
65
69
*/
70
+ @ Deprecated
66
71
public class JpaInterceptor extends JpaAccessor implements MethodInterceptor {
67
72
68
73
private boolean exceptionConversionEnabled = true ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2008 the original author or authors.
2
+ * Copyright 2002-2011 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
46
46
* @see JpaDialect
47
47
* @see org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter
48
48
* @see org.springframework.orm.jpa.support.OpenEntityManagerInViewInterceptor
49
+ * @deprecated as of Spring 3.1, in favor of native EntityManager usage
50
+ * (typically obtained through <code>@PersistenceContext</code>).
51
+ * Note that this interface did not get upgraded to JPA 2.0 and never will.
49
52
*/
53
+ @ Deprecated
50
54
public interface JpaOperations {
51
55
52
56
<T > T execute (JpaCallback <T > action ) throws DataAccessException ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2009 the original author or authors.
2
+ * Copyright 2002-2011 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
85
85
* @see org.springframework.transaction.jta.JtaTransactionManager
86
86
* @see org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter
87
87
* @see org.springframework.orm.jpa.support.OpenEntityManagerInViewInterceptor
88
+ * @deprecated as of Spring 3.1, in favor of native EntityManager usage
89
+ * (typically obtained through <code>@PersistenceContext</code>)
90
+ * Note that this class did not get upgraded to JPA 2.0 and never will.
88
91
*/
92
+ @ Deprecated
89
93
public class JpaTemplate extends JpaAccessor implements JpaOperations {
90
94
91
95
private boolean exposeNativeEntityManager = false ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2008 the original author or authors.
2
+ * Copyright 2002-2011 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
43
43
* @see #createJpaTemplate
44
44
* @see #setJpaTemplate
45
45
* @see org.springframework.orm.jpa.JpaTemplate
46
+ * @deprecated as of Spring 3.1, in favor of native EntityManager usage
47
+ * (typically obtained through <code>@PersistenceContext</code>)
46
48
*/
49
+ @ Deprecated
47
50
public abstract class JpaDaoSupport extends DaoSupport {
48
51
49
52
private JpaTemplate jpaTemplate ;
You can’t perform that action at this time.
0 commit comments