From 48e7c42c4c58ba84826bf7386484f653d50ed34f Mon Sep 17 00:00:00 2001 From: simmyan <8966188@qq.com> Date: Wed, 13 Mar 2024 10:47:00 +0800 Subject: [PATCH] 2.1.7 --- sqli-builder/src/main/java/io/xream/sqli/util/ParserUtil.java | 2 +- sqli-core/src/main/java/io/xream/sqli/core/Repository.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sqli-builder/src/main/java/io/xream/sqli/util/ParserUtil.java b/sqli-builder/src/main/java/io/xream/sqli/util/ParserUtil.java index b06190e..98ac4ad 100644 --- a/sqli-builder/src/main/java/io/xream/sqli/util/ParserUtil.java +++ b/sqli-builder/src/main/java/io/xream/sqli/util/ParserUtil.java @@ -337,7 +337,7 @@ public static void parseKey(Parsed parsed, Class clz) { }else { for (Annotation anno :f.getAnnotations()){ String annoName = anno.annotationType().getName(); - if (annoName.endsWith(".Id") || annoName.endsWith(".ID")){ + if (annoName.endsWith(".Id") || annoName.endsWith(".ID") || annoName.endsWith(".TableId")){ f.setAccessible(true); parsed.setKeyField(f); break; diff --git a/sqli-core/src/main/java/io/xream/sqli/core/Repository.java b/sqli-core/src/main/java/io/xream/sqli/core/Repository.java index 915f837..2abefcb 100644 --- a/sqli-core/src/main/java/io/xream/sqli/core/Repository.java +++ b/sqli-core/src/main/java/io/xream/sqli/core/Repository.java @@ -45,7 +45,6 @@ public interface Repository extends QueryForCache { boolean removeIn(Keys keys); - T get(KeyOne keyOne); @Deprecated