• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Object packaging question

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello folks, I would like to seek advice for packaging question:

There are several items, let's say, 10 items. All of those got model and DAO classes, any comment on following packaging?

Should I try packaging like:
com.abc.item1.model.Item1Model
com.abc.item1.dao.Item1DAO
.
.
.
com.abc.item10.model.Item10Model
com.abc.item10.dao.Item10DAO

OR

com.abc.model.Item1Model
.
.
.
com.abc.model.Item10Model

com.abc.dao.Item1DAO
.
.
.
com.abc.dao.Item10DAO

?
 
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I prefer the second.
 
Zins RockStar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Christian Beil wrote: You might be interested in this: <HYPER-LINK INTENIONALLY DELETED>

I also asked this question on the JavaPosse Google Group: http://groups.google.com/group/javaposse/browse_thread/thread/7b66fdb48619f77d/e2ef70268eb1ae99?lnk=gst&q=package+feature#e2ef70268eb1ae99

NOTE: Please do not post links to the www.javapractices.com website.

 
Why should I lose weight? They make bigger overalls. And they sure don't make overalls for tiny ads:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic