model-view-controllerumluse-caseecb-pattern

Entity Control Boundary (ECB) vs Model View Controller (MVC)


I'm not sure if i got the right concept.

I was told by people that

Boundary = View

Entity = Model

Control = Controller

however based on my knowledge of MVC. (fat model, thin controller)

Isn't the Boundary = Controller, Control = Model (the busienss logic) and Entity = Model (The orm classes or similar entity classes which does only crud ).

I may be wrong, please guide me!


Solution

  • Actually your first definition is simply correct. The meaning of words is sometimes confusing. The following link confirms and summarizes both patterns (naming ECB a variant of MVC): The Entity-Control-Boundary Pattern