Skip to content
Advertisement

Is my package structure correct?

What should be the hierarchy of packages?

JavaScript

Is this package structure appropriate?

Advertisement

Answer

I am actually against layer-driven packaging but instead I advice feature-driven approach:

JavaScript

The reasoning is: you’ll much more often want to have all classes related to person functionality in one place. Not often you need all DAO classes.

UML
(source: yuml.me)

Advertisement