package ${package}.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
#if(${hasBigDecimal})
import java.math.BigDecimal;
#end


/**
 * ${comments}
 * 
 * @author ${author}
 * @email ${email}
 * @date ${datetime}
 */
@Data
@Table(name = "${tableName}")
public class ${className} implements Serializable {
	private static final long serialVersionUID = 1L;
	
#foreach ($column in $columns)
	#if($column.columnName == $pk.columnName)
    /**
    *  $column.comments
   */
    @Id
	@GeneratedValue(generator = "JDBC")
	@ApiModelProperty("$column.comments")
    private $column.attrType $column.attrname;
	#else
    /**
     *  $column.comments
     */
    @Column(name = "$column.columnName")
	@ApiModelProperty(value = "$column.comments"#if($column.columnName == "crt_time"||$column.columnName == "upd_time"), hidden = true #end)
    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
}
