com.baomidou.mybatisplus.annotations.TableField类的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(9.3k)|赞(0)|评价(0)|浏览(342)

本文整理了Java中com.baomidou.mybatisplus.annotations.TableField类的一些代码示例,展示了TableField类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableField类的具体详情如下:
包路径:com.baomidou.mybatisplus.annotations.TableField
类名称:TableField

TableField介绍

暂无

代码示例

代码示例来源:origin: stylefeng/Guns

@TableField("AVATAR")
private String avatar;
@TableField("ACCOUNT")
private String account;
@TableField("PASSWORD")
private String password;
@TableField("SALT")
private String salt;
@TableField("NAME")
private String name;
@TableField("BIRTHDAY")
private Date birthday;
@TableField("SEX")
private String sex;
@TableField("EMAIL")
private String email;
@TableField("PHONE")
private String phone;
@TableField("ROLE_ID")
private String roleId;

代码示例来源:origin: huangjian888/jeeweb-mybatis-springboot

if (tableField != null) {
  String fieldName = field.getName();
  if (StringUtils.isNotEmpty(tableField.el())) {
    fieldName = tableField.el();
  if (StringUtils.isNotEmpty(tableField.value())) {
    String columnName = tableField.value();

代码示例来源:origin: huangjian888/jeeweb-mybatis-springboot

/**
 * 获取该类的所有属性列表
 *
 * @param clazz
 *            反射类
 * @return
 */
public static List<Field> getAllFields(Class<?> clazz) {
  List<Field> fieldList = ReflectionKit.getFieldList(clazz);
  if (CollectionUtils.isNotEmpty(fieldList)) {
    Iterator<Field> iterator = fieldList.iterator();
    while (iterator.hasNext()) {
      Field field = iterator.next();
      /* 过滤注解非表字段属性 */
      TableField tableField = field.getAnnotation(TableField.class);
      if (tableField != null && !tableField.exist()) {
        iterator.remove();
      }
    }
  }
  return fieldList;
}

代码示例来源:origin: stylefeng/Guns

@TableField("CODE")
private String code;
@TableField("PCODE")
private String pcode;
@TableField("PCODES")
private String pcodes;
@TableField("NAME")
private String name;
@TableField("ICON")
private String icon;
@TableField("URL")
private String url;
@TableField("SORT")
private Integer sort;
@TableField("LEVELS")
private Integer levels;
@TableField("MENU_FLAG")
private String menuFlag;
@TableField("DESCRIPTION")
private String description;

代码示例来源:origin: stylefeng/Guns

@TableField("PID")
private Long pid;
@TableField("PIDS")
private String pids;
@TableField("SIMPLE_NAME")
private String simpleName;
@TableField("FULL_NAME")
private String fullName;
@TableField("DESCRIPTION")
private String description;
@TableField("VERSION")
private Integer version;
@TableField("SORT")
private Integer sort;
@TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
private Date createTime;
@TableField(value = "UPDATE_TIME", fill = FieldFill.UPDATE)
private Date updateTime;
@TableField(value = "CREATE_USER", fill = FieldFill.INSERT)
private Long createUser;

代码示例来源:origin: stylefeng/Guns

@TableField("PID")
private Long pid;
@TableField("NAME")
private String name;
@TableField("CODE")
private String code;
@TableField("DESCRIPTION")
private String description;
@TableField("SORT")
private Integer sort;
@TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
private Date createTime;
@TableField(value = "UPDATE_TIME", fill = FieldFill.UPDATE)
private Date updateTime;
@TableField(value = "CREATE_USER", fill = FieldFill.INSERT)
private Long createUser;
@TableField(value = "UPDATE_USER", fill = FieldFill.UPDATE)
private Long updateUser;

代码示例来源:origin: stylefeng/Guns

@TableField("LOG_NAME")
private String logName;
@TableField("USER_ID")
private Long userId;
@TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
private Date createTime;
@TableField("SUCCEED")
private String succeed;
@TableField("MESSAGE")
private String message;
@TableField("IP_ADDRESS")
private String ipAddress;

代码示例来源:origin: stylefeng/Guns

@TableField("NAME")
private String name;
@TableField("DB_DRIVER")
private String dbDriver;
@TableField("DB_URL")
private String dbUrl;
@TableField("DB_USER_NAME")
private String dbUserName;
@TableField("DB_PASSWORD")
private String dbPassword;
@TableField("DB_TYPE")
private String dbType;
@TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
private Date createTime;
@TableField(value = "UPDATE_TIME", fill = FieldFill.UPDATE)
private Date updateTime;
@TableField(value = "CREATE_USER", fill = FieldFill.INSERT)
private Long createUser;
@TableField(value = "UPDATE_USER", fill = FieldFill.UPDATE)
private Long updateUser;

代码示例来源:origin: stylefeng/Guns

@TableField("FILE_DATA")
private String fileData;
@TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
private Date createTime;
@TableField(value = "UPDATE_TIME", fill = FieldFill.UPDATE)
private Date updateTime;
@TableField(value = "CREATE_USER", fill = FieldFill.INSERT)
private Long createUser;
@TableField(value = "UPDATE_USER", fill = FieldFill.UPDATE)
private Long updateUser;

代码示例来源:origin: stylefeng/Guns

@TableField("PID")
private Long pid;
@TableField("NAME")
private String name;
@TableField("DESCRIPTION")
private String description;
@TableField("SORT")
private Integer sort;
@TableField("VERSION")
private Integer version;
@TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
private Date createTime;
@TableField(value = "UPDATE_TIME", fill = FieldFill.UPDATE)
private Date updateTime;
@TableField(value = "CREATE_USER", fill = FieldFill.INSERT)
private Long createUser;
@TableField(value = "UPDATE_USER", fill = FieldFill.UPDATE)
private Long updateUser;

代码示例来源:origin: stylefeng/Guns

@TableField("LOG_TYPE")
private String logType;
@TableField("LOG_NAME")
private String logName;
@TableField("USER_ID")
private Long userId;
@TableField("CLASS_NAME")
private String className;
@TableField("METHOD")
private String method;
@TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
private Date createTime;
@TableField("SUCCEED")
private String succeed;
@TableField("MESSAGE")
private String message;

代码示例来源:origin: stylefeng/Guns

@TableField("TITLE")
private String title;
@TableField("CONTENT")
private String content;
@TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
private Date createTime;
@TableField(value = "CREATE_USER", fill = FieldFill.INSERT)
private Long createUser;
@TableField(value = "UPDATE_TIME", fill = FieldFill.UPDATE)
private Date updateTime;
@TableField(value = "UPDATE_USER", fill = FieldFill.UPDATE)
private Long updateUser;

代码示例来源:origin: stylefeng/Guns

@TableField("MENU_ID")
private Long menuId;
@TableField("ROLE_ID")
private Long roleId;

代码示例来源:origin: pig4cloud/pig

@TableField("role_name")
private String roleName;
@TableField("role_code")
private String roleCode;
@TableField("role_desc")
private String roleDesc;
@TableField("create_time")
private Date createTime;
@TableField("update_time")
private Date updateTime;
@TableField("del_flag")
private String delFlag;

代码示例来源:origin: pig4cloud/pig

@TableField("service_id")
private String serviceId;
@TableField("strip_prefix")
private String stripPrefix;
@TableField("sensitiveHeaders_list")
private String sensitiveheadersList;
@TableField("create_time")
private Date createTime;
@TableField("update_time")
private Date updateTime;
@TableField("del_flag")
private String delFlag;

代码示例来源:origin: Exrick/x-boot

/**
 * @author Exrickx
 */
@Data
@Entity
@Table(name = "t_user_role")
@TableName("t_user_role")
@ApiModel(value = "用户角色")
public class UserRole extends XbootBaseEntity {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty(value = "用户唯一id")
  private String userId;

  @ApiModelProperty(value = "角色唯一id")
  private String roleId;

  @Transient
  @TableField(exist=false)
  @ApiModelProperty(value = "角色名")
  private String roleName;
}

代码示例来源:origin: Exrick/x-boot

@TableField(exist=false)
@ApiModelProperty(value = "拥有权限")
private List<RolePermission> permissions;
@TableField(exist=false)
@ApiModelProperty(value = "拥有数据权限")
private List<RoleDepartment> departments;

代码示例来源:origin: pig4cloud/pig

@TableField("order_num")
private Integer orderNum;
@TableField("create_time")
private Date createTime;
@TableField("update_time")
private Date updateTime;
@TableField("del_flag")
private String delFlag;
@TableField("parent_id")
private Integer parentId;

代码示例来源:origin: Exrick/x-boot

@TableField(exist=false)
@ApiModelProperty(value = "父节点名称")
private String parentTitle;
@TableField(exist=false)
@ApiModelProperty(value = "主负责人")
private List<String> mainHeader;
@TableField(exist=false)
@ApiModelProperty(value = "副负责人")
private List<String> viceHeader;

代码示例来源:origin: pig4cloud/pig

@TableField("resource_ids")
private String resourceIds;
@TableField("client_secret")
private String clientSecret;
private String scope;
@TableField("authorized_grant_types")
private String authorizedGrantTypes;
@TableField("web_server_redirect_uri")
private String webServerRedirectUri;
private String authorities;
@TableField("access_token_validity")
private Integer accessTokenValidity;
@TableField("refresh_token_validity")
private Integer refreshTokenValidity;
@TableField("additional_information")
private String additionalInformation;
private String autoapprove;

相关文章