From user-return-12486-archive-asf-public=cust-asf.ponee.io@cayenne.apache.org Wed Sep 18 00:41:16 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 4DAD7180645 for ; Wed, 18 Sep 2019 02:41:16 +0200 (CEST) Received: (qmail 78964 invoked by uid 500); 18 Sep 2019 00:41:15 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 78952 invoked by uid 99); 18 Sep 2019 00:41:15 -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; Wed, 18 Sep 2019 00:41:15 +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 C9356180D9A for ; Wed, 18 Sep 2019 00:41:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.801 X-Spam-Level: * X-Spam-Status: No, score=1.801 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=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id kvNM4y7l_LKH for ; Wed, 18 Sep 2019 00:41:12 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::c2f; helo=mail-yw1-xc2f.google.com; envelope-from=blacknext@gmail.com; receiver= Received: from mail-yw1-xc2f.google.com (mail-yw1-xc2f.google.com [IPv6:2607:f8b0:4864:20::c2f]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id 34CFA7DC5D for ; Wed, 18 Sep 2019 00:41:12 +0000 (UTC) Received: by mail-yw1-xc2f.google.com with SMTP id s6so1856788ywe.5 for ; Tue, 17 Sep 2019 17:41:12 -0700 (PDT) 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=l4ngxXYdp2o08PKneRQdZa/hOrHTpbb130kpIZdkrbQ=; b=Z0ki15Q6JOKkfmXhJARNvXqHCeWAr0QoRgELhyfA6m+ydyf2pryuuNvsJkFCHX8jGs V/RHsU7jR9iQ8PXYwtNKA6Oef1B40l46xunvclX2AF/O+dK6KSOkVQ/SGde3+2sxReNo 8iXhp6tXtoA2o+hxI3F8X2TjZKP3Z8qbMzhajq196jZaY025mirlbq6S8sMo1CVzehqa /7xxpLw7J5UYDWVr2mMksn5VC1R/iU3WwFyw9y/vF9a66EvOEzj86Lxj+PpzFrZjnU9Q FsKypMU6mohe47ZBmWSV49ivZ7RHKvMOHuFMugxnotWwnv6iNJAwZb8e0fj+q7GBJl0k F+Jw== 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=l4ngxXYdp2o08PKneRQdZa/hOrHTpbb130kpIZdkrbQ=; b=TG4KZexaQNvHDpmpGS+90EYRNY49LJ7TWRTDdtd71fyaMsiee2dYsijv4k1ds/gRvE saCPN4n4iRbjr92cHDhAXD/OmZ8T9mfOGljBXyhNlJDwZKtvTBavI3GITt1XsROrQ7Oq 5ue2vgeStrJ1B6q88Db0Pp4Mvh3EPCDf383ru552EnxS8qywtH6BD71fLyl5WpghSq4B uU6AUhNnYy9eZdDwtIT85pig/eRc4R8E0kclBZhFgXZnHhTEcnY/Bzs9sxbsX3XoNrA6 UJPKz/rkkicEr1dIugQG05sA5/IdOULxoeRLnhgRMtkIgAOtcxIJaztvKFbcuv08wE5k aOqw== X-Gm-Message-State: APjAAAWNiBJZ49rJ5OdOg2I0Ng+sUFzpSDwvocGhi4b9v7c28H/Syj3b zl6BAYTogcBUz80yt/5RbkjUNZGZQKZv+HwoVu6pXYQL X-Google-Smtp-Source: APXvYqyTuunO84sDdFOX9T3uf/Il5nwgbmKQvVjlOKiB9DRwck8bhr1sHNQ4FjRB/4805eWnAFmMseUwefCio+Souhs= X-Received: by 2002:a81:2743:: with SMTP id n64mr1078753ywn.447.1568767264683; Tue, 17 Sep 2019 17:41:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Michael Gentry Date: Tue, 17 Sep 2019 20:40:28 -0400 Message-ID: Subject: Re: Sending data across the wire. To: Cayenne Users Content-Type: multipart/alternative; boundary="0000000000008bf9f30592c917e1" --0000000000008bf9f30592c917e1 Content-Type: text/plain; charset="UTF-8" Hi Tony, Have you tried using Jackson? https://github.com/FasterXML/jackson https://www.baeldung.com/jackson On Tue, Sep 17, 2019 at 2:49 PM Tony Giaccone wrote: > So typically I create a Data Transfer Object to return values across the > wire that I have fetched and copy attributes from my model object to the > DTO. This gets tedious quickly. I wondered if there's not another way > that people are doing this, because this seems entirely too painful. > > However, if* this is* what most people do, then perhaps a change could be > made to the modeler, that would all you to create automatically a set of > DTO objects with when you generate the model objects. I recognize that > this would be a rather significant effort and I'm guessing that there's > probably a better way, but I'm not aware of what it is. > > Any suggestions? > > > Tony Giaccone > --0000000000008bf9f30592c917e1--