|
|
1.1 root 1: {
2: EOModelVersion = 1;
3: adaptorName = Sybase;
4: connectionDictionary = {databaseName = pubs; hostName = SYBASE; password = ""; userName = sa; };
5: entities = (
6: {
7: attributes = (
8: {
9: columnName = au_id;
10: externalType = id;
11: name = au_id;
12: valueClassName = NSString;
13: },
14: {
15: columnName = au_fname;
16: externalType = varchar;
17: name = firstname;
18: valueClassName = NSString;
19: },
20: {
21: definition = "firstname + ' ' + lastname";
22: externalType = varchar;
23: isReadOnly = Y;
24: name = fullname;
25: valueClassName = NSString;
26: },
27: {
28: columnName = au_lname;
29: externalType = varchar;
30: name = lastname;
31: valueClassName = NSString;
32: },
33: {
34: definition = toTitleAuthor.toTitles.price;
35: externalType = money;
36: isReadOnly = Y;
37: name = price;
38: valueClassName = NSNumber;
39: valueType = d;
40: },
41: {
42: definition = toTitleAuthor.toTitles.title;
43: externalType = varchar;
44: isReadOnly = Y;
45: name = title;
46: valueClassName = NSString;
47: }
48: );
49: attributesUsedForLocking = (au_id, firstname, lastname);
50: className = Catalog;
51: classProperties = (toTitleAuthor, au_id, price, title, firstname, lastname, fullname);
52: externalName = authors;
53: externalQuery = Catalog;
54: name = authors;
55: primaryKeyAttributes = (firstname);
56: relationships = (
57: {
58: destination = titleauthor;
59: isToMany = N;
60: joins = (
61: {
62: destinationAttribute = au_id;
63: joinOperator = EOJoinEqualTo;
64: joinSemantic = EOInnerJoin;
65: sourceAttribute = au_id;
66: }
67: );
68: name = toTitleAuthor;
69: }
70: );
71: },
72: {
73: attributes = (
74: {
75: columnName = au_id;
76: externalType = id;
77: name = au_id;
78: valueClassName = NSString;
79: },
80: {
81: columnName = title_id;
82: externalType = tid;
83: name = title_id;
84: valueClassName = NSString;
85: }
86: );
87: attributesUsedForLocking = (au_id, title_id);
88: classProperties = (au_id, title_id, toTitles);
89: externalName = titleauthor;
90: name = titleauthor;
91: primaryKeyAttributes = (au_id);
92: relationships = (
93: {
94: destination = titles;
95: isToMany = N;
96: joins = (
97: {
98: destinationAttribute = title_id;
99: joinOperator = EOJoinEqualTo;
100: joinSemantic = EOInnerJoin;
101: sourceAttribute = title_id;
102: }
103: );
104: name = toTitles;
105: }
106: );
107: },
108: {
109: attributes = (
110: {
111: columnName = price;
112: externalType = money;
113: name = price;
114: valueClassName = NSNumber;
115: valueType = d;
116: },
117: {
118: columnName = title;
119: externalType = varchar;
120: name = title;
121: valueClassName = NSString;
122: },
123: {
124: columnName = title_id;
125: externalType = tid;
126: name = title_id;
127: valueClassName = NSString;
128: }
129: );
130: attributesUsedForLocking = (price, title, title_id);
131: classProperties = (price, title, title_id);
132: externalName = titles;
133: name = titles;
134: primaryKeyAttributes = (title);
135: }
136: );
137: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.