CXF
  1. CXF
  2. CXF-4003

XmlSchemaPrimitiveUtils covers date/time types

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5, 2.5.1
    • Fix Version/s: 2.5.2
    • Component/s: None
    • Labels:

      Description

      Can you please add some mapping for date/time types in org.apache.cxf.common.util.XmlSchemaPrimitiveUtils?

      I suggest this:

      registerPrimitiveClasses("dateTime", java.sql.Date.class, java.util.Date.class, java.sql.Timestamp.class);
      registerPrimitiveClasses("time", java.sql.Time.class);
      

        Activity

        Matthias Brandt created issue -
        Matthias Brandt made changes -
        Field Original Value New Value
        Description Can you please add some mapping for date/time types in org.apache.cxf.common.util.XmlSchemaPrimitiveUtils?

        I suggest this:
        {code} registerPrimitiveClasses("dateTime", java.sql.Date.class, java.util.Date.class, java.sql.Timestamp.class);
        registerPrimitiveClasses("time", java.sql.Time.class);
        {code}
        Can you please add some mapping for date/time types in org.apache.cxf.common.util.XmlSchemaPrimitiveUtils?

        I suggest this:
        {code}
        registerPrimitiveClasses("dateTime", java.sql.Date.class, java.util.Date.class, java.sql.Timestamp.class);
        registerPrimitiveClasses("time", java.sql.Time.class);
        {code}
        Matthias Brandt made changes -
        Description Can you please add some mapping for date/time types in org.apache.cxf.common.util.XmlSchemaPrimitiveUtils?

        I suggest this:
        {code}
        registerPrimitiveClasses("dateTime", java.sql.Date.class, java.util.Date.class, java.sql.Timestamp.class);
        registerPrimitiveClasses("time", java.sql.Time.class);
        {code}
        Can you please add some mapping for date/time types in org.apache.cxf.common.util.XmlSchemaPrimitiveUtils?

        I suggest this:
        {code}
        registerPrimitiveClasses("dateTime", java.sql.Date.class, java.util.Date.class, java.sql.Timestamp.class);
        registerPrimitiveClasses("time", java.sql.Time.class);
        {code}
        Daniel Kulp made changes -
        Assignee Daniel Kulp [ dkulp ]
        Daniel Kulp made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.5.2 [ 12319249 ]
        Resolution Fixed [ 1 ]
        Daniel Kulp made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Daniel Kulp
            Reporter:
            Matthias Brandt
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1h
              1h
              Remaining:
              Remaining Estimate - 1h
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development