I have a data structure designed like this:
employee
. department
. building
. sector
> number (this is a relationship to employeeData)
employeeData
. name
. position
. salary
> number (this is a relationship to employee)
this way, there will be only one employeeData entry per employee.
I have classes for all entities.
Now, how do I fetch every employee that matches a particular number and then the employeeData that corresponds to the employee?
what I need is this
“find employeeData for employee.number = X”
thanks
Something like this:
Remember that the data relationship is automatically fetched due if the relationship is defined in the core data model. This was extracted and modified to fit the question from: http://www.cocoadevcentral.com/articles/000086.php