Hi,
I am having problem to differentiate between entities and value objects.
I would like to represent a Share from the Stock market, the Share will be the Entity and will contain an object Pricing which contains 3 properties; the current price, the ask price and the bid price.
From my understanding, this Pricing object should be a value object because only his properties define it. If I have a Pricing of 1/1/1 and another one 1/1/1, for me there are the same.
But where I am confused is that those value can change. So this Pricing object wouldn't be immutable as the current price can change at any time without the ask price changing or the bid price changing.
Am I missing something?
Thank you very much,
Hector