mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-09-20 04:24:05 +00:00
ref[storage]: refactor storage
This commit is contained in:
1 parent
9ea0992b40
commit
c05212799a
8 files changed
+18
-18
No files matched your search
@@ -471,7 +471,7 @@ public class OrmManager implements IOrmManager {
|
||||
ReflectionUtils.publicEmptyConstructor(clazz);
|
||||
|
||||
// 不能使用Storage的Index注解
|
||||
var storageIndexes = ReflectionUtils.getFieldsByAnnoNameInPOJOClass(clazz, "com.zfoo.storage.model.anno.Index");
|
||||
var storageIndexes = ReflectionUtils.getFieldsByAnnoNameInPOJOClass(clazz, "com.zfoo.storage.anno.Index");
|
||||
if (ArrayUtils.isNotEmpty(storageIndexes)) {
|
||||
throw new RunException("在Orm中只能使用Orm的Index注解,不能使用Storage的Index注解,为了避免不必要的误解和增强项目的健壮性,禁止这样使用");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user