...
Option 1: | Option 2: | Option 3: | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description | Linear mapping | Automapping | AbstractController | ||||||||||||||||||
Pros and cons | doesn’t need more knowledge for Java Base contributors (more linear) makes the controllers ticker | offer a centralized point for models mapping can be customized or disabled where not required it needs annotations (less linear) it binds to a 1:1 mapping that may be useless in the future | it should simplify the writing of a standard controller it works only for controllers managing one Model/DTO it binds to a 1:1 mapping that may be useless in the future it may lead to a “GOD Class” known problem | ||||||||||||||||||
Estimated cost |
|
|
|
...