1@Entity
2public class User {
3 @Id
4 Long id;
5
6 @Column(columnDefinition = "varchar(255) default 'John Snow'")
7 private String name;
8
9 @Column(columnDefinition = "integer default 25")
10 private Integer age;
11
12 @Column(columnDefinition = "boolean default false")
13 private Boolean locked;
14}