My Oracle Support Banner

@Temporal(TemporalType.DATE) Behavior Change Between WLS 12.1.2 (JDBC and WLS 12.1.3 (JDBC (Doc ID 2201990.1)

Last updated on MAY 01, 2023

Applies to:

Oracle WebLogic Server - Version and later
JDBC - Version and later
Information in this document applies to any platform.


A change of behavior has been reported in the Enumeration:

When WebLogic Server was upgraded from WLS 12.1.2 (which is bundled with JDBC driver to WLS 12.1.3 (which is bundled with JDBC, fields marked as @Temporal(TemporalType.DATE), which are mapped to java.sql.DATE, are retrieving and saving the time part of the date as well. That is, in the older versions, a field marked as @Temporal(TemporalType.DATE) would have the time portion of the timestamp changed to all zeroes, but in the new version, the time portion of the timestamp is not truncated.

No errors are reported, but the behavior is not as expected. What happened?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.