public class EntityField extends Object
| Constructor and Description |
|---|
EntityField(Field field,
PropertyDescriptor propertyDescriptor)
构造方法
|
| Modifier and Type | Method and Description |
|---|---|
void |
copyFromPropertyDescriptor(EntityField other)
先创建field,然后可以通过该方法获取property等属性
|
boolean |
equals(Object o) |
<T extends Annotation> |
getAnnotation(Class<T> annotationClass) |
Class<?> |
getJavaType() |
String |
getName() |
int |
hashCode() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationClass)
是否有该注解
|
void |
setJavaType(Class<?> javaType) |
public EntityField(Field field, PropertyDescriptor propertyDescriptor)
field - 字段propertyDescriptor - 字段name对应的propertypublic void copyFromPropertyDescriptor(EntityField other)
other - fieldpublic boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
annotationClass - 注解public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
public Class<?> getJavaType()
public void setJavaType(Class<?> javaType)
public String getName()
Copyright © 2019. All rights reserved.