Login | Register
My pages Projects Community openCollabNet

propel
Reply to message

* = Required fields
* Subject
* Body
Attachments
Send reply to
Topic
Author (directly in email)
Please type the letters in the image above.

Original message

Author hlellelid
Full name Hans Lellelid
Date 2007-11-09 04:25:22 PST
Message Martynas Jusevicius wrote:
> Hi,
>
> I've run into limitations of current Criteria as well. For example,
> when specifying non-trivial conditions for JOINs.
>
> I don't know I there is any background for this, but I have a feeling
> that Criteria would only be really flexible if based directly on
> (simplified) grammar of SQL. Still it might turn out too complex :)

Yeah -- the problem with a SQL-looking solution is that we have to
actually parse strings (not sure if that's what you meant). The other
Criteria2 experiment was much more closely based on SQL grammer; it was
just cumbersome for the very simple stuff -- since you had to always set
up expressions, etc. It was extremely flexible, however. I am going to
look at the stuff that Ants (and Cameron) have been working with to see
how far off it is from the implementation I did last year. I think
there are some similarities.

Also, since this is for 2.0, we may be able to benefit from features
such as late static binding.

Hans