I don't think anyone ever said it was a problem. I think there were two issues; what kind of accessors should be exposed and ensuring that only methods which don't bypass business logic are exposed. The latter can be solved with interfaces as already pointed out.I don't see why it becomes a big issue for domain objects to be modified by the presentation tier
I like your approach Sergio and I think it makes sense. The use of interfaces as you say should make it meaningful. One slight concern I have is the number of accessors I might have to add to the domain objects. OK, fine these are only visible to some of the interfaces but does it create clutter on the domain object.
Given the bad points of the alternatives, I'd be willing to accept the extra accessors!


Reply With Quote