File: 0008_jpa_20_api.diff

package info (click to toggle)
libspring-java 3.0.6.RELEASE-17
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 50,744 kB
  • ctags: 58,990
  • sloc: java: 325,579; xml: 67,955; sql: 176; makefile: 40; ruby: 33; sh: 6
file content (29 lines) | stat: -rw-r--r-- 998 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Description: JPA 2.0 compatibility patch
Author: Miguel Landaeta <miguel@miguel.cc>
Forwarded: no
Last-Update: 2010-07-02

--- a/projects/org.springframework.orm/src/main/java/org/springframework/orm/jpa/persistenceunit/MutablePersistenceUnitInfo.java
+++ b/projects/org.springframework.orm/src/main/java/org/springframework/orm/jpa/persistenceunit/MutablePersistenceUnitInfo.java
@@ -22,6 +22,8 @@
 import java.util.Properties;
 import javax.persistence.spi.ClassTransformer;
 import javax.persistence.spi.PersistenceUnitTransactionType;
+import javax.persistence.SharedCacheMode;
+import javax.persistence.ValidationMode;
 import javax.sql.DataSource;
 
 import org.springframework.util.ClassUtils;
@@ -220,4 +222,12 @@
 		return builder.toString();
 	}
 
+	public SharedCacheMode getSharedCacheMode() {
+		throw new UnsupportedOperationException("getSharedCacheMode");
+	}
+
+	public ValidationMode getValidationMode() {
+		throw new UnsupportedOperationException("getValidationMode");
+	}
+
 }