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

  • Home
  • SEARCH
  • 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 6205093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:12:41+00:00 2026-05-24T05:12:41+00:00

I was working on a UML class model and (basic as it is) I

  • 0

I was working on a UML class model and (basic as it is) I feel I need to see if my assumption is right. I have two types: Administrator and Location. (A relationship exists between the two where an Administrator can be at one or more locations).

An Administrator needs to assign themselves to a Location. Should this assignment operation be in the Location type or the Administrator type? What is the reasoning for one over the other?

  • 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-24T05:12:42+00:00Added an answer on May 24, 2026 at 5:12 am

    Both are possible and with argumentation, both could also be just fine.

    If the administrator is logged in at the main server, he could invoke AdminUtils.Locations(That).AddAdministrator(Me). On the other hand, if the administrator is at a specific location he could, prior to logging in at that location, invoke AdminUtils.Administrators(Me).AddLocation(This).

    These kind of questions are for specific situations generally answered by considering responsibilities. Which entity is responsible for which entities?

    Also note that these Add methods could perfectly be elements of both entities, but one of them is mapped to the actual storage which should be just one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working up an analysis model in UML, and I'm a bit stuck when
I have been working on projects that deal with 2-Dimensional graphing, UML diagramming and
Working with C#. I have an abstract class that I use to read/write settings
I'm working on a small UML editor project, in Java, that I started a
Working on a project at the moment and we have to implement soft deletion
i have tried to generate Class Diagrams in NetBeans 6.7 and 6.8 but all
The diagram http://www.freeimagehosting.net/uploads/2fd3f4161c.png Here's the Minimalist-UML diagram of an app I've been working on.
After working on a Django project for a while, I now have to do
I have been working at a few different companies now and every one has
Working with stl:list and stl::vector types under interrupt handlers I want to avoid malloc()

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.