could not execute statement [NULL not allowed for column "CREATEDAT"; SQL statement:
insert into taco (created_at,name,id) values (?,?,?) [23502-224]]
[insert into taco (created_at,name,id) values (?,?,?)];
SQL [insert into taco (created_at,name,id) values (?,?,?)]; constraint [null]] with root cause
It seems like the @PrePersistent in Taco.java does not work:
@PrePersist
void createdAt() {
this.createdAt = new Date();
}
When saving a taco, error:
It seems like the
@PrePersistent
inTaco.java
does not work: