com.duoec.doc.doclet.pojo.EntityRef Maven / Gradle / Ivy
The newest version!
package com.duoec.doc.doclet.pojo;
import java.io.Serializable;
import java.util.List;
/**
* @author xuwenzhen
*/
public class EntityRef implements Serializable {
private static final long serialVersionUID = 1L;
/**
* entity.name
*/
private String entityName;
/**
* 字段名称
*/
private String name;
/**
* 注释
*/
private String comment;
/**
* 是否必填
*/
private boolean required = false;
/**
* 默认值
*/
private String demo;
/**
* 默认值
*/
private String defaultValue;
/**
* 参数注解,比如@PathVariable / @RequestBody等
*/
private List annotations;
/**
* GraphqlField注解,格式: {apiCode}:{dependency}
*/
private String graphqlField;
/**
* GraphqlDirective注解,多个以半角逗号分隔
*/
private String graphqlDirective;
public String getEntityName() {
return entityName;
}
public void setEntityName(String entityName) {
this.entityName = entityName;
}
public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment;
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
public boolean isRequired() {
return required;
}
public void setRequired(boolean required) {
this.required = required;
}
public void setDemo(String demo) {
this.demo = demo;
}
public String getDemo() {
return demo;
}
public String getDefaultValue() {
return defaultValue;
}
public void setDefaultValue(String defaultValue) {
this.defaultValue = defaultValue;
}
public void setGraphqlField(String graphqlField) {
this.graphqlField = graphqlField;
}
public String getGraphqlField() {
return graphqlField;
}
public String getGraphqlDirective() {
return graphqlDirective;
}
public void setGraphqlDirective(String graphqlDirective) {
this.graphqlDirective = graphqlDirective;
}
public List getAnnotations() {
return annotations;
}
public void setAnnotations(List annotations) {
this.annotations = annotations;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy