home *** CD-ROM | disk | FTP | other *** search
- {
- Class = EOModel;
- EOModelVersion = 1;
- adaptorName = Sybase;
- connectionDictionary = {databaseName = pubs; hostName = SYBASE; password = ""; userName = sa; };
- entities = (
- {
- Class = EOEntity;
- attributes = (
- {
- Class = EOAttribute;
- columnName = au_id;
- externalType = id;
- isReadOnly = N;
- name = au_id;
- valueClassName = NSString;
- },
- {
- Class = EOAttribute;
- columnName = au_fname;
- externalType = varchar;
- isReadOnly = N;
- name = firstname;
- valueClassName = NSString;
- },
- {
- Class = EOAttribute;
- definition = "firstname + ' ' + lastname";
- externalType = varchar;
- isReadOnly = Y;
- name = fullname;
- valueClassName = NSString;
- },
- {
- Class = EOAttribute;
- columnName = au_lname;
- externalType = varchar;
- isReadOnly = N;
- name = lastname;
- valueClassName = NSString;
- },
- {
- Class = EOAttribute;
- definition = toTitleAuthor.toTitles.price;
- externalType = money;
- isReadOnly = Y;
- name = price;
- valueClassName = NSNumber;
- valueType = d;
- },
- {
- Class = EOAttribute;
- 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;
- isReadOnly = N;
- name = authors;
- primaryKeyAttributes = (firstname);
- relationships = (
- {
- Class = EORelationship;
- destination = titleauthor;
- isToMany = N;
- joins = (
- {
- Class = EOJoin;
- destinationAttribute = au_id;
- joinOperator = EOJoinEqualTo;
- joinSemantic = EOInnerJoin;
- sourceAttribute = au_id;
- }
- );
- name = toTitleAuthor;
- }
- );
- },
- {
- Class = EOEntity;
- attributes = (
- {
- Class = EOAttribute;
- columnName = au_id;
- externalType = id;
- isReadOnly = N;
- name = au_id;
- valueClassName = NSString;
- },
- {
- Class = EOAttribute;
- columnName = title_id;
- externalType = tid;
- isReadOnly = N;
- name = title_id;
- valueClassName = NSString;
- }
- );
- attributesUsedForLocking = (au_id, title_id);
- classProperties = (au_id, title_id, toTitles);
- externalName = titleauthor;
- isReadOnly = N;
- name = titleauthor;
- primaryKeyAttributes = (au_id);
- relationships = (
- {
- Class = EORelationship;
- destination = titles;
- isToMany = N;
- joins = (
- {
- Class = EOJoin;
- destinationAttribute = title_id;
- joinOperator = EOJoinEqualTo;
- joinSemantic = EOInnerJoin;
- sourceAttribute = title_id;
- }
- );
- name = toTitles;
- }
- );
- },
- {
- Class = EOEntity;
- attributes = (
- {
- Class = EOAttribute;
- columnName = price;
- externalType = money;
- isReadOnly = N;
- name = price;
- valueClassName = NSNumber;
- valueType = d;
- },
- {
- Class = EOAttribute;
- columnName = title;
- externalType = varchar;
- isReadOnly = N;
- name = title;
- valueClassName = NSString;
- },
- {
- Class = EOAttribute;
- columnName = title_id;
- externalType = tid;
- isReadOnly = N;
- name = title_id;
- valueClassName = NSString;
- }
- );
- attributesUsedForLocking = (price, title, title_id);
- classProperties = (price, title, title_id);
- externalName = titles;
- isReadOnly = N;
- name = titles;
- primaryKeyAttributes = (title);
- }
- );
- }