Deprecate find-by-primary-key in Minilang?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Deprecate find-by-primary-key in Minilang?

Jacques Le Roux
Administrator
Hi,

We have deprecated findByPrimaryKey() in favour of findOne() in Delegator API, but we still have find-by-primary-key in Minilang.

For consistency reason should we not deprecated  find-by-primary-key also and use only entity-one?

Same question for find-by-and vs entity-and.

The idea is to simplify code.

Jacques

Reply | Threaded
Open this post in threaded view
|

Re: Deprecate find-by-primary-key in Minilang?

Adrian Crum-3
If these changes are made, then please update the Mini-lang
auto-correcting code so that it produces the new grammar.

Adrian Crum
Sandglass Software
www.sandglass-software.com

On 6/29/2015 8:53 AM, Jacques Le Roux wrote:

> Hi,
>
> We have deprecated findByPrimaryKey() in favour of findOne() in
> Delegator API, but we still have find-by-primary-key in Minilang.
>
> For consistency reason should we not deprecated  find-by-primary-key
> also and use only entity-one?
>
> Same question for find-by-and vs entity-and.
>
> The idea is to simplify code.
>
> Jacques
>