I'm starting with Domain Driven Development and after a lot of reading I'm trying to refactor an application the DDD way. But I'm facing a fundamental problem and not sure how to solve.
As an introduction some simplified tasks my application should do. It is a course booking application:
- A course consists of Category, DateTime, Description and Location
- Categories and Locations can be selected from a Dropdownbox
- A special settings section give the user the possibillity to add and change categories and locations
I'm a little bit confused about the immutable state of an object. First I thought a lcoation for example has to be a entity object because it has a identity. But in scope of course the location itself is immutable and cann't be changed.
I'm really confused. Can anybody help me to clear my view?