5 Star 0 Fork 18

src-openEuler/springframework

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
springframework-3.2.6-port-spring-orm-to-javax.persistence-2.0.patch 1.58 KB
一键复制 编辑 原始数据 按行查看 历史
yaokai13 提交于 2020-06-09 15:16 . Package init
From 03c6edd57b8f0275ca344e24bdc5b992c723c987 Mon Sep 17 00:00:00 2001
From: Michal Srb <msrb@redhat.com>
Date: Thu, 16 Jan 2014 11:05:10 +0100
Subject: [PATCH] Port spring-orm to javax.persistence 2.0
---
.../orm/jpa/persistenceunit/MutablePersistenceUnitInfo.java | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/spring-orm/src/main/java/org/springframework/orm/jpa/persistenceunit/MutablePersistenceUnitInfo.java b/spring-orm/src/main/java/org/springframework/orm/jpa/persistenceunit/MutablePersistenceUnitInfo.java
index dd2da77..263e52e 100644
--- a/spring-orm/src/main/java/org/springframework/orm/jpa/persistenceunit/MutablePersistenceUnitInfo.java
+++ b/spring-orm/src/main/java/org/springframework/orm/jpa/persistenceunit/MutablePersistenceUnitInfo.java
@@ -20,6 +20,9 @@ import java.net.URL;
import java.util.LinkedList;
import java.util.List;
import java.util.Properties;
+
+import javax.persistence.SharedCacheMode;
+import javax.persistence.ValidationMode;
import javax.persistence.spi.ClassTransformer;
import javax.persistence.spi.PersistenceUnitTransactionType;
import javax.sql.DataSource;
@@ -208,6 +211,13 @@ public class MutablePersistenceUnitInfo implements SmartPersistenceUnitInfo {
throw new UnsupportedOperationException("getNewTempClassLoader not supported");
}
+ public ValidationMode getValidationMode() {
+ throw new UnsupportedOperationException("Not implemented yet");
+ }
+
+ public SharedCacheMode getSharedCacheMode() {
+ throw new UnsupportedOperationException("Not implemented yet");
+ }
@Override
public String toString() {
--
1.8.3.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/springframework.git
git@gitee.com:src-openeuler/springframework.git
src-openeuler
springframework
springframework
master

搜索帮助