Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Object packaging question

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
I prefer the second.
 
Zins RockStar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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.

 
He repaced his skull with glass. So you can see his brain. Kinda like this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic