去除无效的代码
This commit is contained in:
23
framework/src/main/resources/templates/entity.btl
Normal file
23
framework/src/main/resources/templates/entity.btl
Normal file
@@ -0,0 +1,23 @@
|
||||
package ${entity.entityPackage};
|
||||
|
||||
import cn.lili.base.BaseEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import lombok.Data;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @author ${entity.author}
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name = "${entity.tableName}")
|
||||
@TableName("${entity.tableName}")
|
||||
@ApiModel(value = "${entity.description}")
|
||||
public class ${entity.className} extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user