Check out example codes for "jpa default value". It will help you in understanding the concepts better.

Code Example 1

@Entity
public class User {    
  @Id    
  Long id;     
  
  @Column(columnDefinition = "varchar(255) default 'John Snow'")    
  private String name;     
  
  @Column(columnDefinition = "integer default 25")    
  private Integer age;     
  
  @Column(columnDefinition = "boolean default false")    
  private Boolean locked;
}

Learn ReactJs, React Native from akashmittal.com