本文整理了Java中com.baomidou.mybatisplus.annotation.TableName.<init>()
方法的一些代码示例,展示了TableName.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableName.<init>()
方法的具体详情如下:
包路径:com.baomidou.mybatisplus.annotation.TableName
类名称:TableName
方法名:<init>
暂无
代码示例来源:origin: baomidou/mybatis-plus
@TableName("sys_user")
@Data
public class User {
private Integer id;
@TableField("username")
private String name;
private Integer roleId;
}
代码示例来源:origin: baomidou/mybatis-plus
@TableName("h2student")
@NoArgsConstructor
@AllArgsConstructor
代码示例来源:origin: baomidou/mybatis-plus
/**
* @author miemie
* @since 2019-01-19
*/
@Data
@Accessors(chain = true)
@TableName(resultMap = "resultChildren1")
public class ResultMapEntity {
private Long id;
private String column1;
private String column2;
private String column3;
private String column4;
@TableField(el = "list, typeHandler=com.baomidou.mybatisplus.test.base.type.ListTypeHandler")
private List<String> list;
@TableField(el = "map, typeHandler=com.baomidou.mybatisplus.test.base.type.MapTypeHandler")
private Map<String, Object> map;
}
代码示例来源:origin: baomidou/mybatis-plus
@TableName("h2user")
@EqualsAndHashCode(callSuper = true)
public class H2User extends SuperEntity {
代码示例来源:origin: baomidou/mybatis-plus
/**
* h2address entity.
*
* @author yuxiaobin
* @since 2017/5/25
*/
@Data
@Accessors(chain = true)
@TableName("h2address")
public class H2Addr {
@TableId("addr_id")
private Long addrId;
@TableField("addr_name")
private String addrName;
@TableField("test_id")
private Long testId;
}
代码示例来源:origin: tomoya92/pybbs
@TableName("oauth_user")
public class OAuthUser implements Serializable {
代码示例来源:origin: baomidou/mybatis-plus-samples
/**
* 学生实体
* @author nieqiurong 2018/8/11 20:20.
*/
@Data
@TableName(value = "student")
public class Student {
private Long id;
private String name;
private Integer age;
}
代码示例来源:origin: baomidou/mybatis-plus-samples
/**
* 学生实体
* @author nieqiurong 2018/8/11 20:20.
*/
@Data
@TableName(value = "student")
public class Student {
private Long id;
private String name;
private Integer age;
}
代码示例来源:origin: baomidou/mybatis-plus-samples
/**
* 学生实体
* @author nieqiurong 2018/8/11 20:20.
*/
@Data
@TableName(value = "student")
@NoArgsConstructor
@AllArgsConstructor
public class Student {
private Long id;
private String name;
private Integer age;
}
代码示例来源:origin: baomidou/mybatis-plus-samples
@Data
@TableName(value = "role")
@NoArgsConstructor
@AllArgsConstructor
public class Role implements Serializable {
@JsonSerialize(using = ToStringSerializer.class)
private Long id;
private String name;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime;
}
代码示例来源:origin: lord-of-code/loc-framework
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("demo_table")
public class DemoInfo {
private long id;
private String name;
private int age;
private int score;
}
代码示例来源:origin: baomidou/mybatis-plus-samples
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "user", resultMap = "userCascadeResult") //resultMap 只针对plus所封装的方法
public class User implements Serializable {
@JsonSerialize(using = ToStringSerializer.class)
private Long id;
private String username;
private String password;
@TableField(value = "role_id", el = "role.id")
private Role role;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime;
}
代码示例来源:origin: Caratacus/Crown
/**
* <p>
* 角色资源关系表
* </p>
*
* @author Caratacus
*/
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("sys_role_resource")
public class RoleResource extends BaseModel {
private static final long serialVersionUID = 1L;
/**
* 角色ID
*/
private Integer roleId;
/**
* 菜单ID
*/
private String resourceId;
}
代码示例来源:origin: Caratacus/Crown
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("sys_role_menu")
public class RoleMenu extends BaseModel {
代码示例来源:origin: Caratacus/Crown
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("sys_menu_resource")
public class MenuResource extends BaseModel {
代码示例来源:origin: Caratacus/Crown
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("sys_user_role")
public class UserRole extends BaseModel {
代码示例来源:origin: baomidou/mybatis-plus-samples
/**
* 用户实体
* @author nieqiurong 2018-08-10 22:55:21.
*/
@Data
@TableName(value = "user")
@NoArgsConstructor
@AllArgsConstructor
public class User {
private Long id;
private String name;
private Integer age;
private String email;
@TableField(fill = FieldFill.INSERT_UPDATE)
private String operator;
}
代码示例来源:origin: baomidou/mybatis-plus-samples
@Data
@KeySequence("SEQ_USER")
@TableName("user")
public class User {
@TableId(value = "id", type = IdType.INPUT)
private Long id;
private String name;
private Integer age;
private String email;
}
代码示例来源:origin: yujunhao8831/spring-boot-start-current
@ToString
@Accessors( chain = true )
@TableName( "manage_user_role" )
public class UserRole extends Model< UserRole > {
代码示例来源:origin: Caratacus/Crown
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("sys_resource")
public class Resource extends Convert {
内容来源于网络,如有侵权,请联系作者删除!