Survey Management System-(2) design entity

Source: Internet
Author: User

Design entity (design database table)

By analyzing Requirement documents and static pages, you can understand requirements and abstract relevant entities.

Forward Engineering: designing entities, ing files → creating tables

Reverse Engineering: design table → ing file and Entity

When designing entities, consider the following issues:

1) How many entities are there?

Generally, a group of add, delete, modify, and query objects corresponds to one object.

2) What is the relationship between entities?

Generally, when a page references another object, it indicates that the object is associated.

3) What are the attributes of each object?

I. Primary Key.

Ii. Link Attributes. In the class diagram, an association is a line with two ends. Each end corresponds to an attribute that expresses the association. There are several ends pointing to this class, and this class has several correlated attributes.

Iii. General attributes. Analyze all related pages and find out the information to be filled in the form or displayed on the display page.

Iv. Special attributes: Attributes designed to solve a problem. For example, if you want to display the age, but do not design an int age field, but a date birthday field, the age is calculated in real time during display.

 

Note: The specific design of the entity in this project can refer to the design of complex and abstract entities related to survey, page, and question to understand the design process and improve the problem abstraction capability.

The summary of this article is from Xu peicheng's data collection system and Tang sunshine OA system. For more information, see http://blog.csdn.net/getclass/article/details/5178473.

investigation management system-(2) design entity

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.