Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-2505

stateless QueryModels don't support dates

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.5, 5.2 M1
    • Fix Version/s: 5.1.6, 5.2 M2
    • Component/s: None

      Description

      It's currently impossible to use date/time in a stateless query model. The problem is that the QM can't guess whether the user wants to produce
      a DATE or TIMESTAMP where clause part.

      The solution would be that querymodel should accept instances of org.nuxeo.ecm.core.query.sql.Literal. Then client code (typically in a Seam Component) can use DateLiteral or TimestampLiteral, or whatever.

        Attachments

          Activity

            People

            • Assignee:
              gracinet Georges Racinet
              Reporter:
              gracinet Georges Racinet
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 30 minutes
                30m
                Remaining:
                Remaining Estimate - 30 minutes
                30m
                Logged:
                Time Spent - Not Specified
                Not Specified