JPA @Temporal(TemporalType.DATE) includes time fraction when Oracle JDBC driver is used

Solution Verified - Updated -

Issue

  • Data stored using @Temporal(TemporalType.DATE) includes the exact time (i.e. "12.10.2017 11:42:37.987") although the date without time is expected (i.e. "12.10.2017 00:00.000")

Environment

  • Red Hat JBoss Enterprise Application Server (EAP)
    • 6.4
    • 7
    • Oracle JDBC driver ojdbc7.jar or later

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.