该用户匿名发帖 发表于 2010-8-10 22:52   全显示 1楼
When a target entity in one-to-one or one-to-many relationship is removed from the relationship, it is often desirable to cascade the remove operation to the target entity. Such target entities are considered “orphans,” and the orphanRemoval attribute can be used to specify that orphaned entities should be removed. For example, if an order has many line items, and one of the line items is removed from the order, the removed line item is considered an orphan. If orphanRemoval is set to true, the line item entity will be deleted when the line item is removed from the order.
本帖最近评分记录
  • tim118 金币 -10 恶意灌水! 2010-8-11 00:35
0
回复帖子 发新话题