Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1M2
    • Fix Version/s: None
    • Component/s: Database integration
    • Labels:
      None

      Description

      Here is some code that we wrote at Swrve to load/save jodatime DateTime objects with Cayenne

      1. joda-patch.txt
        18 kB
        John Huss
      2. DateTimeType.java
        3 kB
        Marc O'Morain
      3. 0003-CAY-1626-Add-JodaTime-DateTime-support.patch
        30 kB
        John Huss
      4. 0002-Add-support-for-joda-time-attributes.patch
        31 kB
        John Huss
      5. 0001-Add-support-for-joda-time-attributes.patch
        19 kB
        John Huss

        Activity

        Marc O'Morain created issue -
        Marc O'Morain made changes -
        Field Original Value New Value
        Attachment DateTimeType.java [ 12497671 ]
        John Huss made changes -
        Comment [ I'm trying to use this with Postgresql and it's not working. Are you defining the column as a varchar or as a timestamp? With postgres it doesn't like you using statement.setString to set a timestamp field. And for reading the value, it doesn't parse because the timezone offset is appended to the string returned by rs.getString; and even without that, that string only contains the value down to the second, omitting the milliseconds. ]
        John Huss made changes -
        Attachment joda-patch.txt [ 12501163 ]
        John Huss made changes -
        Attachment joda-patch.txt [ 12501163 ]
        John Huss made changes -
        Attachment joda-patch.txt [ 12516739 ]
        John Huss made changes -
        John Huss made changes -
        John Huss made changes -

          People

          • Assignee:
            Unassigned
            Reporter:
            Marc O'Morain
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development