Eclipse + JBoss 5 + EJB3 Development Guide (11)

Source: Internet
Author: User
Tags jboss

Connection policy for Entity beans (joined strategy)

In the previous article, a table was logically partitioned into multiple tables using a single table strategy. However, this can result in an empty nest field, that is, a logical table consists of only a subset of the fields, while the values of many fields in the physical table are null. To solve this problem, the T_accounts table can be physically partitioned into multiple tables. To make a comparison with the T_accounts table, create a new t_myaccounts table, as shown in Figure 1.

Figure 1 T_myaccounts Table

As you can see from the structure of the t_myaccounts, the first three fields of the T_accounts table are included in the table, and the last two are logically divided into different tables, so you create two physical tables: T_checkingaccount and T_ SavingsAccount. The two tables are structured as follows:

Figure 2 T_checkingaccount Table

Figure 3 T_savingsaccount Table

Related Article

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.