Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6956957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:56:12+00:00 2026-05-27T14:56:12+00:00

I started in PHP, where packages aren’t required. We’re going to be building a

  • 0

I started in PHP, where packages aren’t required. We’re going to be building a project at my work that is in Java and I’m considering the architecture. The system will be a content management system with 3 levels. We’ll have various models for all different things. Should all the models be in one package, should they be broken up into various packages grouped with all the other functionality pertaining to their “section” or something else completely?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:56:13+00:00Added an answer on May 27, 2026 at 2:56 pm

    There are no absolute rules for this. As a rule of thumb I’d say that a package should contain no more than 10 and no less than 2 compilation units, but tastes differ. Try to find a taxonomy that lets you divide the models into several packages without feeling artificial.

    But I would not put the models into the same package as code that works with them. Try to make your package names representative of what happens in them, e.g.

    com.myapp.model.x
    com.myapp.model.y
    com.myapp.service.x
    com.myapp.service.y
    com.myapp.controller.x
    com.myapp.controller.y
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've started a php project, it will use cakePhp. I saw that cakePhp has
I have recently started programming in PHP. I am building a cart in PHP.
I started doing a new project in PHP / MySql . The Aim of
I just started using php arrays (and php in general) I have a code
I've started writing a few applications in PHP, and I'm becoming more familiar with
I have just started out with testing some php mvc framework In it, it
I've just started to practice with PHP built-in gettype() and its return value. This
I just started using Netbeans to debug PHP apps, but when I inspect any
I'm new to PHP, started with Code Igniter and MAMP. I start the server
I've started to learn OO programming, but using the PHP language with the help

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.