First page Back Continue Last page Graphics


DB Constraints, Compositions, and Associations

When two entity objects are related by a composition, the strict chronological ordering is modified automatically to ensure that composed parent and child entity rows are saved in an order that avoids violating any constraints. This means, for example, that a new parent entity row is inserted before any new composed children entity rows.

However, if your related entities are associated but not composed, you need to write code to ensure that the related entities are saved in the appropriate order.