isis-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Cameron <steve.cameron...@gmail.com>
Subject Re: How to display value object
Date Fri, 11 Aug 2017 05:27:07 GMT
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, 赵 敏 <bestzhaomin@live.cn> 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 or
> 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 any
> 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
>
>

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