I find a sample whose package's structure as following:jpetstore Â |Â |--dao (DAOs ,interface )Â |--domain ( the domain classes )Â |--service ( some service)Â |--web ( contains the Web Controller)then I want to know how to define the package ?Acorrding to the layers,or the function module?
I think we should combine the both i.e Layers as well as function module.
First we can create packages keeping function modules in the mind and then inside those packages we can create layer wise package structure.It will be easy to maintain..
Some people might prefer the same thing but other way round.
keep posted about suggestions