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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content