From dev-return-10974-archive-asf-public=cust-asf.ponee.io@cayenne.apache.org Tue Sep 25 22:28:31 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 4F27518061A for ; Tue, 25 Sep 2018 22:28:31 +0200 (CEST) Received: (qmail 73726 invoked by uid 500); 25 Sep 2018 20:28:30 -0000 Mailing-List: contact dev-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list dev@cayenne.apache.org Received: (qmail 72634 invoked by uid 99); 25 Sep 2018 20:28:29 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2018 20:28:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 309D3184DBE for ; Tue, 25 Sep 2018 20:28:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.999 X-Spam-Level: * X-Spam-Status: No, score=1.999 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id sbWTInw1HSUE for ; Tue, 25 Sep 2018 20:28:26 +0000 (UTC) Received: from post.selbstdenker.com (mail.selbstdenker.com [81.27.166.251]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A6A7A5F11F for ; Tue, 25 Sep 2018 20:28:25 +0000 (UTC) X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.19.2 (ClamAV engine v0.99.2) Received: from [83.171.162.97] (account maik@selbstdenker.ag HELO puuridan.mknet.prv) by selbstdenker.ag (CommuniGate Pro SMTP 6.2.6) with ESMTPSA id 15922368 for dev@cayenne.apache.org; Tue, 25 Sep 2018 22:28:23 +0200 From: Maik Musall Content-Type: multipart/alternative; boundary="Apple-Mail=_16176654-E458-47B1-A52C-F01B4F29436B" Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Allowing property getters without a "get" prefix on DataObjects Date: Tue, 25 Sep 2018 22:28:23 +0200 References: <8A42EBEE-E852-47C0-8FC5-D77FABE588EC@karlmenn.is> <09C55637-2420-4D8B-854B-4B24849CDCD1@selbstdenker.ag> <36282F28-D3FC-45F3-85EA-9DE46BC7C6ED@objectstyle.org> <25D90C5F-8CD0-4192-A65D-6F8B989112BC@objectstyle.org> <1549FCDF-3CD0-46B8-88A0-3295688DE42D@objectstyle.org> <0622B0B5-8F8D-462F-847D-429E718A0201@selbstdenker.ag> To: dev@cayenne.apache.org In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3445.9.1) --Apple-Mail=_16176654-E458-47B1-A52C-F01B4F29436B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > Am 25.09.2018 um 16:59 schrieb John Huss : >=20 > On Tue, Sep 25, 2018 at 9:50 AM Maik Musall > wrote: >=20 >>=20 >>=20 >>> Am 25.09.2018 um 16:23 schrieb Andrus Adamchik = : >>>=20 >>>> "Should Cayenne by default work without prefixed accessors". >>>=20 >>>=20 >>> 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. >>=20 >> I would be very happy about that! :) >>=20 >> 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. >>=20 >=20 > 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 --Apple-Mail=_16176654-E458-47B1-A52C-F01B4F29436B--