JPA @Temporal(TemporalType.DATE) includes time fraction when Oracle JDBC driver is used
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.jaror later
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.