Skip to main content
added 81 characters in body
Source Link

It sounds to me like you actually have two distinct objects here, Address and Location. A Location could be used to represent a corporate office or some other conceptual place, but an Address would be a value object that represents a physical location. An Address never changes, even ifbut the purposeAddress property of thea Location changescan be changed from one Address value object to another with an appropriate event.

It sounds to me like you actually have two distinct objects here, Address and Location. A Location could be used to represent a corporate office or some other conceptual place, but an Address would be a value object that represents a physical location. An Address never changes, even if the purpose of the Location changes.

It sounds to me like you actually have two distinct objects here, Address and Location. A Location could be used to represent a corporate office or some other conceptual place, but an Address would be a value object that represents a physical location. An Address never changes, but the Address property of a Location can be changed from one Address value object to another with an appropriate event.

Source Link

It sounds to me like you actually have two distinct objects here, Address and Location. A Location could be used to represent a corporate office or some other conceptual place, but an Address would be a value object that represents a physical location. An Address never changes, even if the purpose of the Location changes.