package ${packageName}.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.qiaoba.common.base.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * ${functionName} ${tableName}
 *
 * @author ${author}
 * @version 1.0
 * @since ${datetime}
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("${tableName}")
public class ${ClassName} extends BaseEntity{

    private static final long serialVersionUID=1L;

## 遍历字段
#foreach ($column in $columns)
## 忽略基础(父类)字段
#if(!$generator.isBaseColumn($column.javaField))
## 是主键
#if($generator.isPk($column.isPk))
    @TableId
    private String $column.javaField;

## 不是主键
#else
    /**
    * $column.columnComment
    */
    private $column.javaType $column.javaField;

#end
#end
#end
}
