You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.4 KiB
60 lines
1.4 KiB
package ${package}.entity;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.Date;
|
|
|
|
#if(${hasBigDecimal})
|
|
import java.math.BigDecimal;
|
|
#end
|
|
|
|
|
|
/**
|
|
* ${comments}
|
|
*
|
|
* @author ${author}
|
|
* @email ${email}
|
|
* @date ${datetime}
|
|
*/
|
|
public class ${className}Entity implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
#foreach ($column in $columns)
|
|
//$column.comments
|
|
#if($column.attrname == 'gmttime')
|
|
private $column.attrType $column.attrname =new Date();
|
|
#elseif($column.attrname == 'user')
|
|
private $column.attrType $column.attrname;
|
|
|
|
private SysUserEntity sysUserEntity;
|
|
|
|
public SysUserEntity getSysUserEntity() {
|
|
return sysUserEntity;
|
|
}
|
|
|
|
public void setSysUserEntity(SysUserEntity sysUserEntity) {
|
|
this.sysUserEntity = sysUserEntity;
|
|
}
|
|
|
|
#else
|
|
private $column.attrType $column.attrname;
|
|
#end
|
|
|
|
#end
|
|
|
|
#foreach ($column in $columns)
|
|
/**
|
|
* 设置:${column.comments}
|
|
*/
|
|
public void set${column.attrName}($column.attrType $column.attrname) {
|
|
this.$column.attrname = $column.attrname;
|
|
}
|
|
|
|
/**
|
|
* 获取:${column.comments}
|
|
*/
|
|
public $column.attrType get${column.attrName}() {
|
|
return $column.attrname;
|
|
}
|
|
#end
|
|
}
|