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?
-
How to define the package? (2 messages)
- Posted by: ss wen
- Posted on: June 29 2004 09:24 EDT
Threaded Messages (2)
- How to define the package? by Amit L on June 30 2004 02:06 EDT
- How to define the package? by ss wen on June 30 2004 22:33 EDT
-
How to define the package?[ Go to top ]
- Posted by: Amit L
- Posted on: June 30 2004 02:06 EDT
- in response to ss wen
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
Amit -
How to define the package?[ Go to top ]
- Posted by: ss wen
- Posted on: June 30 2004 22:33 EDT
- in response to Amit L
Thanks for your reply.
Your opinion may be right.I study several frameworks and found the same result.