use of com.github.dreamroute.mybatis.pro.core.annotations.Transient in project mybatis-pro by Dreamroute.
the class ClassUtil method getAllFields.
/**
* 获取实体所有JavaBean属性:
* <ol>
* <li>JavaBean属性</li>
* <li>未被@Transient标记</li>
* </ol>
*/
public static Set<Field> getAllFields(Class<?> cls) {
Field[] fs = getFields(cls);
Reflector r = new Reflector(cls);
return Arrays.stream(fs).filter(f -> isJavaBeanProp(r, f)).collect(Collectors.toSet());
}
Aggregations