Hi All,
Recently I've encountered some code and figured out that there was a particular bean object which was used in all 3 layers(MVC).
The main issue here is all the 3 layers are updating information in the bean(left and right, resulting in not able to figure whats happening where to the bean object).
Not sure if this is a good practice, is there a design
pattern which does this:
-- Initialize the object at once place, probably persistence layer
-- Strictly enforces other layers to follow some restrictions, so that updates are made thru' some Contract.
Regards,
Sharma