Refactoring
Closed this issue · 1 comments
Igor-Polatajko commented
- Wrong package structure was choosed initially.
Structure should look as following:
- controller (contollers)
- service (logic)
- repository (dao)
- util (all util classes and mappers)
- dto (dto objects)
- config (configs)
- exception (exceptions)
- model (entities)
Simply move your classes to appropriate package.
-
Get rid of DbAdapter - just rename classes to services and add all the methods form adapter to your service interface. (if you the last, who performs refactoring - remove
adaptor
package). -
If you have some business logic in contollers - move it to services.
-
Refactor places in your code, where you see the possibility to write it better.
-
Add shared navbar to the top of every your template + remove back buttons, rely on navbar.
-
Make sure that everything works after your changes.
Igor-Polatajko commented
Update: DbAdapter will be removed in scope of #14