EOS unidirectional N-to-1 association

Source: Internet
Author: User

1.

The attribute used in the N-end entity can be a primary key or a non-primary key, andthe associated field on the 1 side must be a primary key (either Tanki or a composite primary key).

such as the associated field: OrgID

2.
When the properties used for correlation are selected on the N-side, these properties are not present in the N-side entities and are inaccessible and are replaced with 1 1-side entities. when you want to access N-end the value of these attributes, you need to manipulate the primary key properties of the 1-side entity.

3.
A one-way N:1 Association is supported for lazy loading. If the delay load is set to False, indicating that lazy loading is not supported, then query the N-side entity at the same time the 1-side entity, the query is a sentence joinsql query, if the setting delay load to true, indicating that support lazy loading, first detect all the N-side entities, The 1-terminal entity is then queried based on the N-side correlation attribute.

EOS unidirectional N-to-1 association

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.