postgresql jpa hibernate exception: Found: date, expected: timestamp
<p>I have some probles with JPA <strong>@Temporal(TemporalType.DATE)</strong> annotation, during application demployment.
So I created spring data + postgres 9.5 + hibernate 4.3.10 app and setted <em>hbm2ddl.auto</em> to '<em>validate</em>'.</p>

<pre><code>hibernate.hbm2ddl.auto = validate
</code></pre>

<p>Here is Entity:</p>

<pre><code>@Entity
@Table(name = "locomotive")
public class LocomotiveEntity {

    private Long locomotiveId;
    @Column(name = "status")
    private int status;
    @Temporal(TemporalType.DATE)
    private java.util.Date constructionYear;
...
</code></pre>

<p>Also I created <em>locomotive</em> table using this script:</p>

<pre><code>CREATE TABLE "locomotive"
(
    "locomotiveId"  bigserial PRIMARY KEY,
    "status" integer NOT NULL,
    "constructionYear" DATE NOT NULL
);
</code></pre>

<p>But I see exception during demployment:</p>

<pre><code>Caused by: org.hibernate.HibernateException: Wrong 
column type in public.constructionYear for column constructionYear.
 Found: date, expected: timestamp
</code></pre>

<p>So I have 'DATE' type column in my db, and 'DATE' java type. What I did wrong?</p>