ref[storage]: refactor storage

This commit is contained in:
godotg committed 2023-09-03 00:45:32 +08:00
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注解,为了避免不必要的误解和增强项目的健壮性,禁止这样使用");
}