Primary Keys
Because the nested beans result in their own resource collections, a primary key must be selected for each nested bean. Additionally, any columns that you join-to in the secondary table must be included in the nested bean. If only one column of the secondary table is being included, or the join is one-to-one, no nested bean will result, and the joined-to column should not be included.
Back