mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-09-03 04:18:59 +00:00
fix[proxy]: the annotations of the bean of the parent class cannot be scanned
This commit is contained in:
@@ -421,7 +421,7 @@ public class OrmManager implements IOrmManager {
|
||||
|
||||
ReflectionUtils.makeAccessible(idField);
|
||||
ReflectionUtils.setField(idField, entityInstance, idFiledValue);
|
||||
var idMethodOptional = Arrays.stream(ReflectionUtils.getMethodsByNameInPOJOClass(clazz, "id"))
|
||||
var idMethodOptional = Arrays.stream(ReflectionUtils.getAllMethods(clazz)).filter(it -> it.getName().equalsIgnoreCase("id"))
|
||||
.filter(it -> it.getParameterCount() <= 0)
|
||||
.findFirst();
|
||||
AssertionUtils.isTrue(idMethodOptional.isPresent(), "实体类Entity[{}]必须重写id()方法", clazz.getSimpleName());
|
||||
|
||||
Reference in New Issue
Block a user