title: Column Definition in Hibernate
body: <p>How do i set default value in hibernate field? </p>
  
  <pre><code>    @Column(name="status",nullable=false,columnDefinition="int default 1")
      private Integer status;
  </code></pre>
  
  <p>The above code doesn't works in my entity class.</p>
  
  <p>Please Help me</p>
  
  <p><strong>Edit</strong></p>
  
  <pre><code>public class Base {
  
      @Column(name ="status")
      @JsonProperty("status")
      private Integer status;
  }
  
  public class myclass extends Base
  {
  
  private string name;
  
  }
  </code></pre>