Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2700

Standardize date[time] String representation in Cayenne expressions to be ISO8601

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 5.0-M2
    • None
    • None

    Description

      We need to standardize date[time] String representation in Cayenne expressions to be ISO8601.

      Some background ... When parsing Cayenne expressions we do not attempt any type conversion of parameter values. This is usually not a problem for Cayenne users, as they can pass parameters already converted to a need type (e.g. LocalDateTime). However this is an issue for frameworks like Agrest that can not do proper parameter conversion as they are not aware of the left-hand side of an expression matched with the parameter.

      So let's implement a more robust conversion inside the Cayenne stack. We can probably do it right in the ExtendedType. E.g. ExtendedType for String can do a ISO-8601 String to date[time] conversion based on the passed JDBC type.

      Attachments

        Activity

          People

            Unassigned Unassigned
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: