Enterprise Application Architecture Design-relational structure model (chapter 2)

Source: Internet
Author: User

Object-link structure mode (Chapter 1)
1. Identity Field)
Definition: a database ID domain stored in the object to maintain the identity between the memory object and the database row.
Key Selection: Unique, constant, can quickly perform equal operations, quickly obtain the type of the next key (can be a single or combination, but pay attention to the date and time type; can be a table unique key, it can also be the unique key of the database, but be alert when there is table inheritance)
In-Object Representation: You can simply use the integer key to create a key class for the combination (generic class or each object can correspond to a class independently)
Obtain the new key value: automatically generate the domain, database counter, guid, and key table (table name + next valid value)
Time to use: domain model and data entry

2. Foreign key ing
Definition: foreign key ing maps object references to foreign keys in the database
Time to use: applicable to all associations except many-to-many associations

3. Associate table ing

4. Dependency ing

5. Embedded value

6. serialize lob

7. Single Table inheritance

8. Class table inheritance

9. Specific table inheritance

10. inherit the er

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.