[ 
https://issues.apache.org/jira/browse/CAY-1951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14144757#comment-14144757
 ] 

ASF GitHub Bot commented on CAY-1951:
-------------------------------------

GitHub user thinline72 opened a pull request:

    https://github.com/apache/cayenne/pull/14

    CAY-1951 Support ISO-8601 date/time Strings in Expressions

    I'm going to continue testing it with different databases.
    I would like to know what other date formats you want to add.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/thinline72/cayenne CAY-1951

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cayenne/pull/14.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #14
    
----
commit d1e506ccff46821396f2914d10dd688089af19a1
Author: Savva Kolbechev <s.kolbac...@gmail.com>
Date:   2014-09-01T15:16:06Z

    CAY-1949 Search in configuration fields (Catalog, Schema) in DbEntity

commit ed8b7b0509ddfe216f035a2b7327a1b162a9167e
Author: mrg <blackn...@gmail.com>
Date:   2014-09-02T21:50:42Z

    Back-filled previously filed Board Reports for 2014.

commit 8eb8defec3bc000c0a0e2c2e8f7330ce04e0c5ea
Author: mrg <blackn...@gmail.com>
Date:   2014-09-02T21:57:39Z

    Initial draft for 9/2014 Board Report.

commit 07fe008a5895ca088f23ef57cc03229dfcda5a94
Author: Savva Kolbechev <s.kolbac...@gmail.com>
Date:   2014-09-12T09:58:15Z

    Merge remote-tracking branch 'upstream/master'

commit 60a1985be781246a11e0816eec4a9951f9b75e5d
Author: Savva Kolbechev <s.kolbac...@gmail.com>
Date:   2014-09-23T12:54:41Z

    CAY-1951 Support ISO-8601 date/time Strings in Expressions

----


> Support ISO-8601 date/time Strings in Expressions
> -------------------------------------------------
>
>                 Key: CAY-1951
>                 URL: https://issues.apache.org/jira/browse/CAY-1951
>             Project: Cayenne
>          Issue Type: Improvement
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>
> When creating Expression's from Strings, we only distinguish between numeric 
> and String values. So passing a date/time/datetime as a String is not 
> possible. I think we can improve that... If a left-hand side path of a binary 
> expression is a property that is a java.util.Date , java.sql.Date, 
> java.sql.Time, java.sql.Timestamp, we should be able to parse a right-hand 
> side value to the corresponding object. 
> The biggest caveat is that we can't do this transformation at the parse time. 
> Base expressions are abstract and have no notion of the path type. So only 
> when expression is evaluated (either translated to SQL or evaluated 
> in-memory) can we make the assertion above.
> http://cayenne.apache.org/docs/3.1/cayenne-guide/expressions.html#expressions-from-strings
> http://cayenne.apache.org/docs/3.1/cayenne-guide/expressions-bnf.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to