My Oracle Support Banner

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

Last updated on MAY 01, 2023

Applies to:

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

Goal

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 11.2.0.3.0) to WLS 12.1.3 (which is bundled with JDBC 12.1.0.2.0), 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?

Solution

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
Goal
Solution
References


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