CA Gen Date Time Timestamp in Java
search cancel

CA Gen Date Time Timestamp in Java

book

Article ID: 206774

calendar_today

Updated On:

Products

Gen - Workstation Toolset

Issue/Introduction

For Java, Date, Time and Timestamp fields convert to “string”.  Is that normal behavior?

Environment

Release : 8.5

Component : CA Gen Enterprise Java Beans

Resolution

Yes, for Date, Time, and Timestamp attributes, Gen uses custom marshalling/unmarshalling code to map the java.sql.Date, java.sql.Time, and java.sql.Timestamp objects to/from XML.

The formats expected are as follows:

Date: "yyyyMMdd"
Time: "HHmmss"
Timestamp: "yyyyMMddHHmmssnnnnnn"