Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7A312200CE0 for ; Fri, 11 Aug 2017 07:27:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 78A9A16CD6F; Fri, 11 Aug 2017 05:27:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BECCF16CD6C for ; Fri, 11 Aug 2017 07:27:16 +0200 (CEST) Received: (qmail 17814 invoked by uid 500); 11 Aug 2017 05:27:15 -0000 Mailing-List: contact users-help@isis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@isis.apache.org Delivered-To: mailing list users@isis.apache.org Received: (qmail 17802 invoked by uid 99); 11 Aug 2017 05:27:15 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Aug 2017 05:27:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 110E3C0122 for ; Fri, 11 Aug 2017 05:27:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.629 X-Spam-Level: ** X-Spam-Status: No, score=2.629 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 4dFkl9l8E7pG for ; Fri, 11 Aug 2017 05:27:13 +0000 (UTC) Received: from mail-yw0-f177.google.com (mail-yw0-f177.google.com [209.85.161.177]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 883F65F299 for ; Fri, 11 Aug 2017 05:27:08 +0000 (UTC) Received: by mail-yw0-f177.google.com with SMTP id s143so16731840ywg.1 for ; Thu, 10 Aug 2017 22:27:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=/VC69nGJXTJTtC015229wUOqpX0PTxskRc08g0CgQDM=; b=OqzVBJT+pWy6pb2+jwWvC26cL7XqQcJ31UZ2uSRQwx7cUsi97adAp9SDc9YBgpcOKA 4W3/uPIBvYo0m1j0anwnmqTkBxSqC2dlx4899rBur/JVCng+rpHjpQ19TkhK+0W9Zm/c yiEjCuVjxoZvcb2w4AeIIbDo361f3Pce+tWSQhTmof6qJmVMDN4oEnU0uJB0BTsbN5OM ZKP9Z0ORM7Z6otu4swZOW0qGgyElsKNQh/ck41WUvF6H/1G83wYhl+xIWA7YdURVTh/I FRMhcaks1DZ45wIbz4sMsMFrZE5yAgitXuhlrWlOjvEFFuOjagoA6w/per8y3ZL0rGuA TekA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=/VC69nGJXTJTtC015229wUOqpX0PTxskRc08g0CgQDM=; b=sxvGgzor6Nq9SANsYXs/TcO375dhPNG/4dxpxkWHJA6ICtKvI2H/ipJPUYyQZwVKse CoCRud67cL2CblE07DHVLMOVCIwdS/2B/qMIrjlvQK80SVMCu3Ul3fLTLpyQmVBYQp/w hz9C1CJGwJVhl2IE0JjSAfMr69qubSQ6MQGqZYe6l4WWnG1APsn5p8YIAKB5iFhNSqx/ TUQLmiAEqTS3yGAVJba5sDRLueAf4kaa7XRHdwXpIoGOQUEYBiZbNjJjQk2JGAU2JshI SNnzYaGZ7O8fzdYtzFOMKiibiYotVallTKRf2rHjVdRsjTO89fsh/92jtjKZygmw2hHM jBxg== X-Gm-Message-State: AHYfb5j1PeEtnv+XEYnl2gWocbo4LgFYr/DKnhkkhvQZI0E+zJPvb/XU 5gXzYbkNbx72HJAHeuago2LZYqqk3yiS X-Received: by 10.129.183.20 with SMTP id v20mr11717530ywh.377.1502429227985; Thu, 10 Aug 2017 22:27:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.45.7 with HTTP; Thu, 10 Aug 2017 22:27:07 -0700 (PDT) In-Reply-To: References: From: Stephen Cameron Date: Fri, 11 Aug 2017 15:27:07 +1000 Message-ID: Subject: Re: How to display value object To: "users@isis.apache.org" Content-Type: multipart/alternative; boundary="94eb2c1cc3f86f351005567390c7" archived-at: Fri, 11 Aug 2017 05:27:17 -0000 --94eb2c1cc3f86f351005567390c7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Ekko, it's a user list where there may be some smart enough to offer good advice (support), not sure I fall into that group, but my suggestion would be that a value object only has getters, it's properties values are set in a constructor and never change. If a property change is needed, that implies a new instance and deletion of the old. On Friday, August 11, 2017, =E8=B5=B5 =E6=95=8F wrote= : > Hi support, > > I'm building project with Apache Isis,but I have some confusion. > > In DDD,I know there have two objects,entity & value object. > > When I plan a DomainObject,eg. Customer, a entity object. I think one > Customer may be have many value objects,for example contact information o= r > other value objects. > > So I plan a value object called CustomerContactInformation,may be have > other value objects. > > For the database,a entity object and its value objects may be persist to > diff tables. > > I think CustomerContactInformation just a value object,it can not have an= y > actions and should be maintained by Customer. > > In fact,Customer-CustomerContactInfomation definitely is 1-1. > > Now,how should I display CustomerContactInformation in Customer's layout > and be able to edit CustomerContactInformation? > > Any ideas? > > Ekko > > --94eb2c1cc3f86f351005567390c7--