« Quay lại

Bidirectional relations

Xem kết hợp Flat Xem Xem cây
Luồng thảo luận [ Trước | Tiếp theo ]
toggle
Bidirectional relations
community relation documentation
Câu trả lời
12:10 27/03/2014
Is there any way to define bidirectional relations between two classes? Or the way is to define two different relations between both classes?

RE: Bidirectional relations
connector relation bidirectional
Câu trả lời
07:29 08/01/2014 gửi bài phản hồi tới Karen Poch.
All relations in ADOxx are unidirectional as behaviour. Of course, you can draw a bidirectional arrow if you want or even define an attribute for the relation, whose values are "unidirectional" and "bidirectional", but when you define the relation class, you must choose a FROM class and a TO class. By implication, every connector has a FROM object and a TO object. If you want to be able to draw a connector from A to B and a connector (of the same relation class) from B to A, you can define an abstract class _AB_  , derive classes A and B from class _AB_ and then define your relation class "abRab" from _AB_ to _AB_ .