class A{
B b;
}
class B{
Long id;
Long name;
}
假使只想查询出A中B对象的id字段,如何使用过滤器?
如下写法未见效
A a;
ObjectHolder<A> locked = new ObjectHolder<>();
FieldFilter.locked(A.class, “id”).run(() -> locked.set(dao.fetchLinks(a,"b")));
class A{
B b;
}
class B{
Long id;
Long name;
}
假使只想查询出A中B对象的id字段,如何使用过滤器?
如下写法未见效
A a;
ObjectHolder<A> locked = new ObjectHolder<>();
FieldFilter.locked(A.class, “id”).run(() -> locked.set(dao.fetchLinks(a,"b")));