Hi, I'm new here. Sorry to hijack the
thread but I'm having trouble with grocking when to use unidirectiona lassociations as well. I have two classes, Person and Role and I don't know whether to go with
Role(name:
String) --> User(name:String, password:String)
or
Role(name:String) --- User(name:String, password:String)
I'm leaning towards the first based on this definition: "In a uni-directional association, two classes are related, but only one class knows that the relationship exists.". The idea is that Role should hold information on the status of the User (so that the system can tell if the user have admin status or not) and I don't see any reason for the User-class to know about the Role-class. Is my reasoning completely wrong?