数据库的UML类图 [英] UML class diagram for database

查看:888
本文介绍了数据库的UML类图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个任务来开发酒店预订系统!
的任务之一是开发UML类图!但是,在任务描述中写为
类图应代表您的数据库

I have an assignment for developing a hotel reservation system! One of tasks is to develop UML class diagram! However, in the task description it is written "Class diagram should represent your database"

我对规则,符号等感到有些困惑。 。,因为我找不到任何专门用于数据库的官方UML类图!

I am a bit confused about the rules, notations and etc... because I can't find any official UML class diagrams specifically for databases!

您能帮我吗?

推荐答案

首先,我想向您简要介绍一个类图的不同类型的类,可以在其中以静态视图查看整个系统。

First I would like to brief you about the different types of classes for a class diagram into which one can view the entire system in a static view.


  1. 某些类是实体(模型)类,这些类定义了应用程序域的数据库模型可以持续更长的时间。在上述情况下,可能是客户,酒店员工,酒店菜单,座位信息。

  1. Some classes are entity(model) classes which define the database model for application domain persist for longer duration. In the above mentioned case it can be customer, hotel staff, hotel menu, seating info.

某些类定义了GUI&

Some classes define the GUI & presentation to the user such as view classes.

某些类将控件定义为程序逻辑,处理可被称为控件类的用户事件。

Some classes define the control the program logic, process user events which can be called as control classes.

某些类可以看作是负责与外部数据资源进行通信的资源类。

Some classes can be viewed as the resource classes which are responsible for communication with external data resources.

对于以上提到的所有类,UML中遵循的规则相同,但用途不同。

For all the mentioned classes above the notations, rules followed in UML will be same but their usage, intent will be different.

对于您的问题,您需要捕获所提及系统的这些实体类,通过它们您可以为系统的数据库建模。
希望对您有所帮助。

For your problem, you need to capture these entity classes for the mentioned system through which you can model the database for your system. I hope it will help you a bit.

这篇关于数据库的UML类图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆