|
|
1.1 root 1: // Employee.m
2: //
3: // Created on Wed Nov 16 11:41:34 PST 1994 by NeXT EOModeler.app Version 67
4:
5: #import "Employee.h"
6:
7: @implementation Employee
8: // This method "flattens" the project name by traversing the object
9: // graph. This is sometimes preferable to flattening in EOModeler
10: // because if the toDepartment pointer is reassigned, then this
11: // method will correctly return the name for the new department.
12: // Such is not the case when using database flattening.
13: - (NSString *)departmentName
14: {
15: return [toDepartment objectForKey:@"department_name"];
16: }
17:
18:
19: - (void)dealloc
20: {
21: [address autorelease];
22: [city autorelease];
23: [first_name autorelease];
24: [hire_date autorelease];
25: [last_name autorelease];
26: [phone autorelease];
27: [state autorelease];
28: [toEmp_Quote autorelease];
29: [toEmp_Photo autorelease];
30: [toEmp_Project autorelease];
31: [toProjects autorelease];
32: [toDepartment autorelease];
33: [super dealloc];
34: }
35:
36:
37: @end
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.