|
|
Sample Programs from NeXSTEP 3.3
{
EOModelVersion = 1;
adaptorName = Sybase;
connectionDictionary = {databaseName = pubs; hostName = SYBASE; password = ""; userName = sa; };
entities = (
{
attributes = (
{
columnName = au_id;
externalType = id;
name = au_id;
valueClassName = NSString;
},
{
columnName = au_fname;
externalType = varchar;
name = firstname;
valueClassName = NSString;
},
{
definition = "firstname + ' ' + lastname";
externalType = varchar;
isReadOnly = Y;
name = fullname;
valueClassName = NSString;
},
{
columnName = au_lname;
externalType = varchar;
name = lastname;
valueClassName = NSString;
},
{
definition = toTitleAuthor.toTitles.price;
externalType = money;
isReadOnly = Y;
name = price;
valueClassName = NSNumber;
valueType = d;
},
{
definition = toTitleAuthor.toTitles.title;
externalType = varchar;
isReadOnly = Y;
name = title;
valueClassName = NSString;
}
);
attributesUsedForLocking = (au_id, firstname, lastname);
className = Catalog;
classProperties = (toTitleAuthor, au_id, price, title, firstname, lastname, fullname);
externalName = authors;
externalQuery = Catalog;
name = authors;
primaryKeyAttributes = (firstname);
relationships = (
{
destination = titleauthor;
isToMany = N;
joins = (
{
destinationAttribute = au_id;
joinOperator = EOJoinEqualTo;
joinSemantic = EOInnerJoin;
sourceAttribute = au_id;
}
);
name = toTitleAuthor;
}
);
},
{
attributes = (
{
columnName = au_id;
externalType = id;
name = au_id;
valueClassName = NSString;
},
{
columnName = title_id;
externalType = tid;
name = title_id;
valueClassName = NSString;
}
);
attributesUsedForLocking = (au_id, title_id);
classProperties = (au_id, title_id, toTitles);
externalName = titleauthor;
name = titleauthor;
primaryKeyAttributes = (au_id);
relationships = (
{
destination = titles;
isToMany = N;
joins = (
{
destinationAttribute = title_id;
joinOperator = EOJoinEqualTo;
joinSemantic = EOInnerJoin;
sourceAttribute = title_id;
}
);
name = toTitles;
}
);
},
{
attributes = (
{
columnName = price;
externalType = money;
name = price;
valueClassName = NSNumber;
valueType = d;
},
{
columnName = title;
externalType = varchar;
name = title;
valueClassName = NSString;
},
{
columnName = title_id;
externalType = tid;
name = title_id;
valueClassName = NSString;
}
);
attributesUsedForLocking = (price, title, title_id);
classProperties = (price, title, title_id);
externalName = titles;
name = titles;
primaryKeyAttributes = (title);
}
);
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.