自定义类型处理器(TypeHandler)
实体
package com.wyl.mybatis.entity;
import java.util.Date;
/**
* @Description 省市区-字典
* @Author wuyilong
* @Date 2024-02-26
*/
public class FullCity {
private static final long serialVersionUID = 1L;
/**
* 主键ID
*/
private Long id;
/**
* 名称
*/
private String name;
/**
* 区域码
*/
private String code;
/**
* 全名称
*/
private String fullName;
/**
* 创建时间
*/
private String createTime;
public static long getSerialVersionUID() {
return serialVersionUID;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getFullName() {
return fullName;
}
public void setFullName(String fullName) {
this.fullName = fullName;
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
}
原创大约 6 分钟