From dev-return-11137-archive-asf-public=cust-asf.ponee.io@cayenne.apache.org Fri Nov 29 06:08:11 2019 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 [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 192E5180657 for ; Fri, 29 Nov 2019 07:08:10 +0100 (CET) Received: (qmail 61373 invoked by uid 500); 29 Nov 2019 06:08:10 -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 61335 invoked by uid 99); 29 Nov 2019 06:08:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Nov 2019 06:08:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 2235C1A42BC for ; Fri, 29 Nov 2019 06:08:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id CNeh5nwugb23 for ; Fri, 29 Nov 2019 06:08:07 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::536; helo=mail-ed1-x536.google.com; envelope-from=lon.varscsak@gmail.com; receiver= Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id 455CF7DDAC for ; Fri, 29 Nov 2019 06:08:07 +0000 (UTC) Received: by mail-ed1-x536.google.com with SMTP id f8so9535372edv.2 for ; Thu, 28 Nov 2019 22:08:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=FOTRSA032NUmKfw4mZc2mulWMYcq74wivqCdphF4bWg=; b=qWhbyhuPQAzb95TGNEuOFP0o0YQHDc98zdOGPtpjXj8VEkMUk5drjdCKaKx0b9Ddc4 TfqWzmE+Vt8avG629+aC2pwFBSX9jFsWIjVBD3tY6F+RleJkZhQkLAmB678zbMT3RlVc 3JWw9uaOsuqwYRqqQMwFTI0cudOk2wTiAvtnNQKaccT57x/b11T+JJhpbjLoZhP1k1Dz Osw3S8rKWZ39uGm/ceq+pOu6qoN/Qa37croqr0TmW4dHZIkD3qwnQ9avr0AUulG0jqtO rdu/gGcfNsbrOICBkIoiOYqw/397RuZGQFEQzQWlw2jKe3akXo1BWg1OavVVhmU+UWDJ Z7BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=FOTRSA032NUmKfw4mZc2mulWMYcq74wivqCdphF4bWg=; b=MzsYMm3+3SHYk07oTiQiEZZQTo9Wew1ybrtslp2pFMx8+MxNUSJb+V5Y1l+R4FSa0U 7RHHgrcSgLZgsZvz5yXadLvkki8dH1TegE7THsfobl0tSVXrQ084gqIXQNZJWkSugE6T CkWnS+Vud5h5xmhnMyAF/7953O1v0PwuMkXHdzDOIrrpytM5MfaMnVgH3ln8GleJ5+0i 2Zv/6NJUJi5wrK5t7IkPpq6yaUnbywz4oyE8mUyrIScb7zm6MDzNJb+QJaSBxpWvfUr+ 3MqeWh49kqtnwDUYT3Ggy/AzLPUsYkSrA82FhrMMgsvl1kJGDdx1uCHmFy67tzdS2GP0 IA0w== X-Gm-Message-State: APjAAAVPku2BEC62cd4qCEphS4dku06xF60kuqoEiDFeBNzC+g10X864 lBclNQ8VLbbKlapd7yjnYhRpWhOUbdhA9RKsoWaDOh7f X-Google-Smtp-Source: APXvYqzIgs14q8BaMEfxkJ7Rc1U0cuTVPegnZKn1comtI66FPBRHHCs3V3C93KMMd7qmkW3v+wboDuEL1v0nF7EhzME= X-Received: by 2002:a17:906:d210:: with SMTP id w16mr58975223ejz.86.1575007681080; Thu, 28 Nov 2019 22:08:01 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Lon Varscsak Date: Thu, 28 Nov 2019 23:07:48 -0700 Message-ID: Subject: Re: Lazy Attributes To: dev@cayenne.apache.org Content-Type: multipart/alternative; boundary="0000000000005971c80598760d86" --0000000000005971c80598760d86 Content-Type: text/plain; charset="UTF-8" Yeah, it's a great idea. On Thu, Nov 28, 2019 at 6:06 AM Maik Musall wrote: > +1 sounds very useful to simplify the data model here and there > > > Am 27.11.2019 um 13:06 schrieb Michael Gentry : > > > > I just happened across an article on Hibernate which talks about lazy > > attributes. (A recent addition, I think.) This essentially allows you > to > > flag an attribute/column as lazy and it'll be excluded from the original > > SELECT query, but if you call the getter it will then fetch it in. This > is > > convenient for BLOB-type data that might happen to be in a main table > with > > other attributes (such as MIME types, file sizes, file names, etc). > > > > Thoughts on maybe adding this feature to Cayenne? I can imagine there'd > be > > a "Lazy" column in Cayenne Modeler for the attributes to control/identify > > them. > > > > Thanks, > > > > mrg > > --0000000000005971c80598760d86--