Re: Allowing property getters without a "get" prefix on DataObjects

2018-09-25 Thread Maik Musall
> Am 25.09.2018 um 16:59 schrieb John Huss : > > On Tue, Sep 25, 2018 at 9:50 AM Maik Musall > wrote: > >> >> >>> Am 25.09.2018 um 16:23 schrieb Andrus Adamchik : >>> "Should Cayenne by default work without prefixed accessors". >>> >>> >>> So how about

Re: Allowing property getters without a "get" prefix on DataObjects

2018-09-25 Thread Hugi Thordarson
Hi Andrus, and y'all. I've been looking into this and it seems like a rather large change to allow something relatively simple (allowing DataObjects to have accessor methods that don't start with a "get"-prefix). Would people be diametrically opposed to just changing BeanAccessor so that it

Re: Allowing property getters without a "get" prefix on DataObjects

2018-09-25 Thread Andrus Adamchik
Hi Hugi, My vote would be to do it right. There is a positive side effect that the entire reflection strategy suddenly becomes customizable. Andrus > On Sep 25, 2018, at 7:11 AM, Hugi Thordarson wrote: > > Hi Andrus, and y'all. > > I've been looking into this and it seems like a rather

Re: Allowing property getters without a "get" prefix on DataObjects

2018-09-25 Thread Hugi Thordarson
Hi Andrus and thanks for the reply, allowing replacement of the entire reflection strategy is certainly nice and would allow me to make the customizations I need. However, if it's OK with you, rather than discuss implementation details, I'd like to take two steps back and revert to the more

Re: Allowing property getters without a "get" prefix on DataObjects

2018-09-25 Thread Andrus Adamchik
> "Should Cayenne by default work without prefixed accessors". My answer to this : "By default, no. As a fallback or a custom strategy, possibly." I actually agree about Java beans. They are almost irrelevant now. And I wish Java gets "data classes" and some transparent form of "properties".

Re: Allowing property getters without a "get" prefix on DataObjects

2018-09-25 Thread Maik Musall
> Am 25.09.2018 um 16:23 schrieb Andrus Adamchik : > >> "Should Cayenne by default work without prefixed accessors". > > > So how about this... Unless someone else steps in by then, let me brainstorm > it with Nikita a couple of weeks from now and see if we can do a DI solution. > It is

Re: Allowing property getters without a "get" prefix on DataObjects

2018-09-25 Thread John Huss
On Tue, Sep 25, 2018 at 9:50 AM Maik Musall wrote: > > > > Am 25.09.2018 um 16:23 schrieb Andrus Adamchik : > > > >> "Should Cayenne by default work without prefixed accessors". > > > > > > So how about this... Unless someone else steps in by then, let me > brainstorm it with Nikita a couple of

Re: Allowing property getters without a "get" prefix on DataObjects

2018-09-25 Thread Hugi Thordarson
>> "Should Cayenne by default work without prefixed accessors". > > My answer to this : "By default, no. As a fallback or a custom strategy, > possibly." Fair enough. > I actually agree about Java beans. They are almost irrelevant now. And I wish > Java gets "data classes" and some