carA = carRepository.load(1);
carB = carRepository.load(1);
carA == carB; // true
carA.changeColor(red);
carB.changeColor(blue);
carA == carB; // true
Equal entity objects but with non-equal attributes - do they exist in single-threaded/single-db applications?
When could a similar case like above ever have carA to be red but carB to be blue?
For a single-threaded web-app with one DB, is there ever a case where you would need carA and carB to be the same identity but have non-equal attributes?