You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by Joe Baldwin <jf...@earthlink.net> on 2019/07/01 16:29:18 UTC
Re: Deprecate SelectQuery in 4.2
Arseni,
Disclaimer:
I *just* (this week) upgraded from 4.0.M2 to 4.0.1. I migrated to using the newer syntax - ex:
table1.property1.asc()
> SelectQuery is planned to be deprecated in 4.2.
My project makes extensive use of “.andExp” to perform conditional-expression-building. So the only question I have is concerning discrete expression component building (ie. combining expression-components via “.andExp"). Would this be available or would it be deprecated as well?
BTW, I do like the newer syntax, as it it much easier to read and is less verbose. Excellent work!
Thanks
Joe
> On Jun 28, 2019, at 9:47 AM, Arseni Bulatski <ab...@objectstyle.com> wrote:
>
> Hi all,
>
> SelectQuery is planned to be deprecated in 4.2.
> ObjectSelect has better api and is recommended to use.
>
> PR: https://issues.apache.org/jira/browse/CAY-2523
>
> Please, write your thoughts about it.
Re: Deprecate SelectQuery in 4.2
Posted by John Huss <jo...@gmail.com>.
On Mon, Jul 1, 2019 at 11:29 AM Joe Baldwin <jf...@earthlink.net> wrote:
> Arseni,
>
> Disclaimer:
> I *just* (this week) upgraded from 4.0.M2 to 4.0.1. I migrated to using
> the newer syntax - ex:
>
> table1.property1.asc()
>
> > SelectQuery is planned to be deprecated in 4.2.
>
> My project makes extensive use of “.andExp” to perform
> conditional-expression-building. So the only question I have is concerning
> discrete expression component building (ie. combining expression-components
> via “.andExp"). Would this be available or would it be deprecated as well?
>
ObjectSelect has a .and(Expression...) method that you can use. Or you can
use Expression.andExp(Expression...)
> BTW, I do like the newer syntax, as it it much easier to read and is less
> verbose. Excellent work!
>
> Thanks
> Joe
>
>
> > On Jun 28, 2019, at 9:47 AM, Arseni Bulatski <ab...@objectstyle.com>
> wrote:
> >
> > Hi all,
> >
> > SelectQuery is planned to be deprecated in 4.2.
> > ObjectSelect has better api and is recommended to use.
> >
> > PR: https://issues.apache.org/jira/browse/CAY-2523
> >
> > Please, write your thoughts about it.
>
>