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 8168247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:27:28+00:00 2026-06-06T20:27:28+00:00

All tutorials I can find always tackle with toy uml use cases like the

  • 0

All tutorials I can find always tackle with toy uml use cases like the one here http://www.ibm.com/developerworks/java/library/j-jmod0508/

I can’t see how you can model this in UML Use Case:

a customer can be either a Physical Person or a Company and that a Company has employees that are themselves physical persons. Company has also some persons who work for them as contractors who are physical persons but are not customers.

Could someone has any good idea and writes this model in yuml use cases http://yuml.me/ for example ?

Nobody seems to know UML Use Case so let’s say even Class Diagram or even Java or C# Class Diagram or even database design 🙂

Problem I see in the model below is that Person is a Customer and so all employees would also be customers which is wrong:

enter image description here

  • 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-06-06T20:27:30+00:00Added an answer on June 6, 2026 at 8:27 pm

    The following class diagram fulfills your needs:

    class diagram

    You are actually working with two domains: the first domain is the hierarchy of the company: a company has employees and contractors which are persons; the second domain is the domain of customers, which can be companies and customers. So in this diagram you have a Person which can be a Contractor, an Employee or a CustomerPerson, which can also be a Customer, and you have a CustomerCompany which is both a Customer and a Company.

    Note that I created CustomerCompany which inherits from Company instead of making Company inherit from Customer since I assume not all companies are customers.

    I used inheritance for all relations, but if multiple inheritance is not wanted, this can be done using interface.

    The yuml code for this diagram is:

    [Company]++-0..*>[Employee]
    [Company]++-0..*>[Contractor]
    [Person]^-[Employee]
    [Person]^-[Contractor]
    [Customer]^-[CustomerCompany]
    [Company]^-[CustomerCompany]
    [Customer]^-[CustomerPerson]
    [Person]^-[CustomerPerson]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've looked at all the tutorials I can find, examined the questions on here
I've decided to start learning C#, but all the tutorials I can find are
OK, I've read and attempted all of the tutorials I can find on being
I've read a lot of Zend controller testing tutorials but I can't find one
All of the continuation tutorials I can find are on fixed length continuations(i.e. the
I can't find my SQLite DB. I'm using the 4.1 simulator. All the tutorials
I am learning RESTful Web Services and all the tutorials use javax.ws.rs.* package. But
This probably has been asked before but all I can find are questions regarding
I can't find any tutorials for newbies. Aren't there any simple rules for using
I've been very excited with backbone.js recently, but all I can find was minimal

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.