title: Date field not retrieved using JPA
body: <p>I have table in mysql data base that called course that has the following columns :</p>
  
  <ul>
  <li>List item</li>
  <li>id - int primary key auto increment </li>
  <li>name - varchar(250)</li>
  <li>start_date - timestamp default now()</li>
  </ul>
  
  <p>And I have the following entity defined : </p>
  
  <pre><code>@Entity
  @Table(name = "course")
  public class Course {
  
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Long id;
  private String name;
  @Column(name = "start_date")
  @Temporal(TemporalType.DATE)
  private Date startDate;
  
  protected Course() {
  
  }
  
  public Course(String name) {
      this.name = name;
  }
  
  public String getName() {
      return name;
  }
  
  public void setName(String name) {
      this.name = name;
  }
  
  public Long getId() {
      return id;
  }
  
  public Date getStartDate() {
      return startDate;
   }
  </code></pre>
  
  <p>}</p>
  
  <p>So the database should populate the date column. 
  I use Spring data JPA so my dao looks like this:</p>
  
  <pre><code>public interface CourseRepository extends CrudRepository&lt;Course, Long&gt; {
  </code></pre>
  
  <p>}</p>
  
  <p>I create a new Course entity (via the above constructor that accepts name):</p>
  
  <pre><code>courseRepository.save(new Course("Algebra"));
  </code></pre>
  
  <p>and save it to table it seems that the id columns is auto increment but the date column is null, even though it defined as default now.</p>