title: LocalDateTime mapped to Oracle DATE, but not to H2 DATE
body: <p>Let's say I have JPA <code>@Embeddable</code>:</p>
  
  <pre><code>@Embeddable
  public class SpecificationValidity {    
      @Column(name = "VALID_FROM", nullable = false)
      private final LocalDateTime validFrom;
  
      @Column(name = "VALID_TO")
      private final LocalDateTime validTo;
  }   
  </code></pre>
  
  <p>SQL table contains columns <code>VALID_FROM</code> and <code>VALID_TO</code> and is declared using liquibase changeset as follows:</p>
  
  <pre><code>&lt;column name="VALID_FROM" type="date"&gt;
      &lt;constraints nullable="false"/&gt;
  &lt;/column&gt;
  &lt;column name="VALID_TO" type="date"/&gt;
  </code></pre>
  
  <p>When I run this code against Oracle database, everything works.</p>
  
  <p>When I run it against H2 database, <code>Caused by: org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: wrong column type encountered in column [valid_from] in table [specification]; found [date (Types#DATE)], but expecting [timestamp (Types#TIMESTAMP)]</code></p>
  
  <p>Why is it?</p>
  
  <p>Is it possible to have consistent mapping for both dbms?</p>