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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:36:06+00:00 2026-05-20T16:36:06+00:00

Hi: I am working with a task publish system. In the system,there are some

  • 0

Hi:
I am working with a task publish system.

In the system,there are some department,for example:develop/sell/product and etc.

Some tasks belong to different department.

And the most import model:the user.

People who use this system are only the bosses of the different department and their boss(the biggest boss) ).

These person all work in the admin page,common boss can only publish and see the taskes in his/her department.He/she can add/remove/modify the task(where the modify means that he can set the status of the task:DONE/DOING/NOT START),all of his/her operation should be verified by the biggest boss.

The biggest boss can see/add/remove/modify all the tasks from all the department,also he/she can add remove user(the common boss),set the permisson of the user(tasks of which department the user can see).

===================
The following is my own design:

Department
  String name;//name of this department

  List<Task> listAllTasks();// list all tasks belong to this department

Task
  String name;
  String desc;//description of this task
  Date startTime;//when this task will start
  Date endTime;
  int status; //is this task done? doing? not starting?
  String executorName; //the name of the person who will responsible for this task(here the person does not need to be common boss,just a name).
  Department depart;//which department does this task belong to ?

Boss
  String loginName;
  String realName;
  String password;
  Department depart;//which department does this boss belong to ?

The above is all my idea,I have no idea to continue to make the authority design.

For example,how about the biggest boss,of course he/she does not belong to any departments,but he have the biggest authority.

Anyone can do me a favor?

BTW,I will use the hibernate as the DAO and the struts2 as the web controller.

  • 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-20T16:36:07+00:00Added an answer on May 20, 2026 at 4:36 pm

    Change your Boss class to Person then add a @ManyToOne Person superior(assuming every employee has only one superior above).

    @ManyToMany List<Person> superiorList=new ArrayList<Person>() if there are more than one superiors for each employee;

    If a person is a boos(the highest authority in the organization tree) , superior or superiorList will be empty.

    For roles

    Create a role class

    Role 
    @OneToMany List<Task> taskList = new ArrayList<Task>();
    role_code
    

    put many to one role in Person class if one person can assign to only one role

    @ManyToOne Role role
    

    or

    @ManyToMany List<Role> roleList
    

    if a person can be assigned many roles.

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

Sidebar

Related Questions

I'm working on my task in computer vision course. One of sub-tasks is gradient
I am working on a task where I am creating some input control dynamically
A common task in programs I've been working on lately is modifying a text
Working with python interactively, it's sometimes necessary to display a result which is some
On a recent project I have been working on in C#/ASP.NET I have some
I am working on task in which dates are involved. I have a person's
I'm working on a project that creates like 20~50 new tasks every 30~80 seconds.
I am working on analyzing different files between two views in Clearcase. I need
I'm working with a task specific .NET plattform, which is precompiled and not OpenSource.
I am currently working on a task to expose an API as a Web

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.