Dear all, While writing my previous reply, it also occurred to me to raise some questions about the relationship between Customer and CustomerContactInformation.
In Ekko's example: - the CustomerContactInformation only contains a telephone number. - there is a 1-to-1 relationship between Customer and CustomerContactInformation My question is: - If I wanted to re-use a CustomerContactInformation between two or more customers (say all Customers that are employees of a company should re-use the company contact information), how do I annotate the POJOs? Or is this domain design fundamentally flawed ? In this case, should the address instead be fetched (a getter) from the "Employer"'s ContactInformation? (where there is a 1-to-many, i.e. "Employer has many Employees" relationship). I suspect the real answer is probably "it depends on what you need"... Cheers, Kevin > 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 > > > -- Kevin Meyer Ljubljana, Slovenia
