title: Current timeStamp is not getting automatically saved into the table with jpa
body: <p>I am using the below sql query to create a table in postgres DB.</p>
  
  <pre><code>CREATE TABLE IF NOT EXISTS data
  (
      id serial, 
      created_at timestamp(0) without time zone DEFAULT (now())::timestamp(0) without time zone,
      created_by integer NOT NULL
  );
  </code></pre>
  
  <p><strong>Entity Class:-</strong></p>
  
  <pre><code>@Entity
  @Table(name = "data")
  @Getter
  @Setter
  public class Data implements Serializable {
      private static final long serialVersionUID = 7462797749946000617L;
  
      public Data() {
      }
  
      public Data(Integer createdBy) {
          super();
          this.setCreatedBy(createdBy);
      }
  
      @Id
      @Column(name = "id")
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      private Integer id;
  
      @Column(name = "created_at")
      private Timestamp createdAt;
  
      @Column(name = "created_by")
      private Integer createdBy;
  }
  </code></pre>
  
  <p>When i am inserting the data like Date data=new Data("12312442");</p>
  
  <pre><code>LogsRepository.save(data);
  </code></pre>
  
  <p>The 'created_at' value is getting saved as null value in DB. Can anyone tell me what wrong am i doing?</p>