
com.bixuebihui.test.pojo.TestGen Maven / Gradle / Ivy
package com.bixuebihui.test.pojo;
/*
* TestGen
*
* Notice! Automatically generated file!
* Do not edit the pojo and dal packages,use `maven tablegen:gen`!
* Code Generator originally by J.A.Carter
* Modified by Xing Wanxiang 2008-2023
* email: [email protected]
*/
import java.sql.*;
import java.io.Serializable;
import jakarta.validation.constraints.*;
import org.apache.commons.text.StringEscapeUtils;
import javax.annotation.processing.Generated;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
@Api(tags="测试表")
@Generated("com.github.yujiaao:tablegen")
public class TestGen implements Serializable {
/**
* id 这里是id!
*/
@ApiModelProperty("这里是id!")
protected Integer id;
/**
* name 这里是名称!
* NotNull, default value: NULL
*/
@Size(max=100)
@ApiModelProperty("这里是名称!")
protected String name;
/**
* age 这里是年龄
* NotNull, default value: NULL
*/
@ApiModelProperty("这里是年龄")
protected Short age;
/**
* birth 这里是日期!
* NotNull, default value: NULL
*/
@ApiModelProperty("这里是日期!")
protected Timestamp birth;
/**
* edu_id 教育程度
* NotNull, default value: NULL
*/
@ApiModelProperty("教育程度")
protected Integer eduId;
/**
* gender 性别
* NotNull, default value: NULL
*/
@Size(max=1)
@ApiModelProperty("性别")
protected String gender;
/**
* sex 性别
* NotNull, default value: NULL
*/
@ApiModelProperty("性别")
protected Boolean sex;
/**
* child 是否有孩子
* NotNull, default value: NULL
*/
@ApiModelProperty("是否有孩子")
protected Boolean child;
public void setId(Integer id)
{
this.id = id;
}
public Integer getId()
{
return this.id;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return this.name;
}
public void setAge(Short age)
{
this.age = age;
}
public Short getAge()
{
return this.age;
}
public void setBirth(Timestamp birth)
{
this.birth = birth;
}
public Timestamp getBirth()
{
return this.birth;
}
public void setEduId(Integer eduId)
{
this.eduId = eduId;
}
public Integer getEduId()
{
return this.eduId;
}
public void setGender(String gender)
{
this.gender = gender;
}
public String getGender()
{
return this.gender;
}
public void setSex(Boolean sex)
{
this.sex = sex;
}
public Boolean getSex()
{
return this.sex;
}
public void setChild(Boolean child)
{
this.child = child;
}
public Boolean getChild()
{
return this.child;
}
public TestGen()
{
id=0;
name="";
age=0;
birth=new Timestamp(System.currentTimeMillis());
eduId=0;
gender="";
sex=Boolean.FALSE;
child=Boolean.FALSE;
}
public String toXml()
{
StringBuilder s= new StringBuilder();
String ln = System.getProperty("line.separator");
s.append(" ");
s.append(ln);
return s.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy