我使用 jooq codegen 来生成这样的实体类:
public class TCoactivitiesPinan extends BaseEntity implements Serializable {
private static final long serialVersionUID = 2007524284;
private Integer id;
private String openid;
private String tel;
private Timestamp createdtime;
...}
但是,我希望它自动确定如果它是时间类型,它会自动添加两个字段。像这样
public class TCoactivitiesPinan extends BaseEntity implements Serializable {
private static final long serialVersionUID = 2007524284;
private Integer id;
private String openid;
private String tel;
private Timestamp createdtime;
private String createdtime_start; // 创建时间_开始时间
private String createdtime_end; // 创建时间_结束时间
private Integer checkstate;
...
}
有什么办法可以解决吗?这。