title: Use newer hibernate or JPA 2.2 for Java 8 Date/Time in SPRING-BOOT?
body: <p>Using s<code>pring-boot 1.5.10</code> (so the current) to use the Java8 Date/Time is <strong>NOT supported</strong> as it looks like by default this version of Spring Boot uses <code>Hibernate 5.0.12.Final</code>.
  To achieve this (<strong>Spring Boot 1.5.10</strong>) in the <code>pom.xml</code> <code>properties</code> section overriding the version works.  </p>
  
  <pre><code>&lt;hibernate.version&gt;5.2.12.Final&lt;/hibernate.version&gt;
  </code></pre>
  
  <p><strong>Question:</strong> <strong>What is the best way to enable Java8 Date/Time to override hibernate version or somehow (if so then how?) use the JPA 2.2 for SPRING_BOOT?</strong></p>
  
  <p>EDIT
  With hibernate <code>5.0.x</code> I keep getting:</p>
  
  <blockquote>
    <p>Caused by:
    org.springframework.jdbc.datasource.init.ScriptStatementFailedException:
    Failed to execute SQL script statement #1 of URL
    [file:./src/main/resources/db/h2/data-h2.sql]: INSERT INTO
    reservations (ID, RESERVATION_NAME, DATE_FROM, DATE_TO) VALUES (1,
    'res1', ParseDateTime('01 01 2001', 'd M yyyy'), ParseDateTime('02 01
    2001', 'd M yyyy')), (2, 'res1', ParseDateTime('01 02 2001', 'd M
    yyyy'), ParseDateTime('02 02 2001', 'd M yyyy')), (3, 'res3',
    ParseDateTime('01 03 2001', 'd M yyyy'), ParseDateTime('02 03 2001',
    'd M yyyy')), (4, 'res4', ParseDateTime('01 04 2001', 'd M yyyy'),
    ParseDateTime('02 04 2001', 'd M yyyy')), (5, 'res5',
    ParseDateTime('01 05 2001', 'd M yyyy'), ParseDateTime('02 05 2001',
    'd M yyyy')); nested exception is org.h2.jdbc.JdbcSQLException:
    Heksadecymalny string z nieparzystą liczbą znaków: "2001-01-01
    00:00:00.0" Hexadecimal string with odd number of characters:
    "2001-01-01 00:00:00.0"; SQL statement: INSERT INTO reservations (ID,
    RESERVATION_NAME, DATE_FROM, DATE_TO) VALUES (1, 'res1',
    ParseDateTime('01 01 2001', 'd M yyyy'), ParseDateTime('02 01 2001',
    'd M yyyy')),</p>
  </blockquote>
  
  <p>but when using the <code>5.2.12.Final</code> everything is working .</p>