请教大家一个通过mybatis-plus通过实体对象自动生成表的问题,我已通过jdbcType 指定startTime字段为时间戳类型,但为什么自动生成的数据库字段依旧是date而不是datetime?如何才能让jdbcType生效呢?
@Data
@TableName("r_activity")
public class Test3 extends BaseModel {
@TableId(value ="id")
private Long id;
@TableField(value ="activity_name")
private String activityName;
@TableField(value ="activity_profile")
private String activityProfile;
@TableField(value ="start_time",jdbcType = TIMESTAMP)
public Date startTime;
}