Vertical Inheritance qualifier based on to many relationship
Vertical Inheritance qualifier based on to many relationship
- Subject: Vertical Inheritance qualifier based on to many relationship
- From: Johan Henselmans <email@hidden>
- Date: Fri, 19 Aug 2011 23:46:56 +0200
My idea:
I have an entity contact, that gets vertically inherited into actor, employee, visitor, nicepersontoalwayinviteforfreetoanyshow, whatever, based on the role somebody/thing plays.
A contact can have different roles, which makes this contact playing actor, employee, visitor, nicepersontoalwayinviteforfreetoanyshow or whatever. So there is a m-n relation roles in a contact.
I assumed that I should be able to create and get a visitor if I could describe in the EOModel qualifier something like roles.ROLE.name = 'visitor'
Something like this: And I would create the relation to the role in the awakeFromInsertion phase of the Visitor.
Of course this is not working, (nothing ever works where I live) as I am getting
takeValueForKey(): attempt to assign value to unknown key: 'roles.ROLE.name'. This class does not have an instance variable of the name roles.ROLE.name
What is the proper incantation to do this?
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden