我有一个简单的实体,没有任何关系,但是当我运行我的应用程序时,它会抛出以下内容:
Error executing DDL "create table tasks (id bigint not null, car bigint, created_at datetime(6), status varchar(255), to bigint, updated_at datetime(6), primary key (id)) engine=InnoDB" via JDBC Statement
我的实体非常简单。这是它的代码:
@Entity
public class Task {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private long id;
@Column(name = "car")
private Long car;
@Column(name = "to")
private Long to;
@Enumerated(EnumType.STRING)
private Task.Status status;
public enum Status {
NEW,
DONE,
}
@CreationTimestamp
private Date createdAt;
@UpdateTimestamp
private Date updatedAt;
}
千万里不及你
红颜莎娜
随时随地看视频慕课网APP
相关分类