cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maik Musall <m...@selbstdenker.ag>
Subject Re: Allowing property getters without a "get" prefix on DataObjects
Date Tue, 25 Sep 2018 20:28:23 GMT


> Am 25.09.2018 um 16:59 schrieb John Huss <johnthuss@gmail.com>:
> 
> On Tue, Sep 25, 2018 at 9:50 AM Maik Musall <maik@selbstdenker.ag <mailto:maik@selbstdenker.ag>>
wrote:
> 
>> 
>> 
>>> Am 25.09.2018 um 16:23 schrieb Andrus Adamchik <andrus@objectstyle.org>:
>>> 
>>>> "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 not nearly as involved as it appears.
>> 
>> I would be very happy about that! :)
>> 
>> And once that's there, one way to implement a BeanAccessor alternative
>> could perhaps be one that is tailored towards field-based DataObjects,
>> accessing the fields directly without using reflection? If possible, that
>> could present another noticable performance win.
>> 
> 
> FWIW, I would consider this a non-goal since it would bypass the getter
> method which may have custom logic (like returning a default value or
> something).

I didn't mean this to become a standard way, but once the DI point is there,
it's easy to rock your own implementation if you know it matches your use case.

Maik


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message