You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Entity.java.vm 1.1 kB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package ${package}.${moduleName}.entity;
  2. import com.baomidou.mybatisplus.annotation.TableId;
  3. import com.baomidou.mybatisplus.annotation.TableName;
  4. import com.baomidou.mybatisplus.extension.activerecord.Model;
  5. import lombok.Data;
  6. import lombok.EqualsAndHashCode;
  7. #if(${hasBigDecimal})
  8. import java.math.BigDecimal;
  9. #end
  10. import java.time.LocalDateTime;
  11. import io.swagger.annotations.ApiModel;
  12. import io.swagger.annotations.ApiModelProperty;
  13. import lombok.NoArgsConstructor;
  14. /**
  15. * <p>
  16. * ${comments}
  17. * </p>
  18. *
  19. * @author ${author}
  20. * @date Created in ${datetime}
  21. */
  22. @Data
  23. @NoArgsConstructor
  24. @TableName("${tableName}")
  25. @ApiModel(description = "${comments}")
  26. @EqualsAndHashCode(callSuper = true)
  27. public class ${className} extends Model<${className}> {
  28. private static final long serialVersionUID = 1L;
  29. #foreach ($column in $columns)
  30. /**
  31. * $column.comments
  32. */
  33. #if($column.columnName == $pk.columnName)
  34. @TableId
  35. #end
  36. @ApiModelProperty(value = "$column.comments")
  37. private $column.attrType $column.lowerAttrName;
  38. #end
  39. }