2007-01-03 05:41:16 +00:00
|
|
|
{
|
|
|
|
EOModelVersion = 2;
|
|
|
|
adaptorName = SQLite3;
|
2007-01-03 22:09:56 +00:00
|
|
|
connectionDictionary = {
|
|
|
|
databasePath = "/tmp/example.db";
|
|
|
|
};
|
2007-01-03 05:41:16 +00:00
|
|
|
entities = (
|
|
|
|
{
|
|
|
|
attributes = (
|
|
|
|
{
|
|
|
|
columnName = authorID;
|
|
|
|
externalType = integer;
|
|
|
|
name = authorID;
|
|
|
|
valueClassName = NSNumber;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
columnName = name;
|
|
|
|
externalType = varchar;
|
|
|
|
name = name;
|
|
|
|
valueClassName = NSString;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
className = EOGenericRecord;
|
|
|
|
classProperties = (
|
2007-01-06 17:21:18 +00:00
|
|
|
name,
|
|
|
|
toBooks
|
2007-01-03 05:41:16 +00:00
|
|
|
);
|
|
|
|
externalName = authors;
|
|
|
|
name = authors;
|
|
|
|
primaryKeyAttributes = (
|
|
|
|
authorID
|
|
|
|
);
|
|
|
|
relationships = (
|
|
|
|
{
|
|
|
|
destination = books;
|
|
|
|
isToMany = Y;
|
|
|
|
joinSemantic = EOInnerJoin;
|
|
|
|
joins = (
|
|
|
|
{
|
|
|
|
destinationAttribute = authorID;
|
|
|
|
sourceAttribute = authorID;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
name = toBooks;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
},
|
|
|
|
{
|
|
|
|
attributes = (
|
|
|
|
{
|
|
|
|
columnName = authorID;
|
|
|
|
externalType = integer;
|
|
|
|
name = authorID;
|
|
|
|
valueClassName = NSNumber;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
columnName = bookID;
|
|
|
|
externalType = integer;
|
|
|
|
name = bookID;
|
|
|
|
valueClassName = NSNumber;
|
|
|
|
},
|
|
|
|
{
|
|
|
|
columnName = title;
|
|
|
|
externalType = varchar;
|
|
|
|
name = title;
|
|
|
|
valueClassName = NSString;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
className = EOGenericRecord;
|
|
|
|
classProperties = (
|
2007-01-06 17:21:18 +00:00
|
|
|
title,
|
|
|
|
toAuthor
|
2007-01-03 05:41:16 +00:00
|
|
|
);
|
|
|
|
externalName = books;
|
|
|
|
name = books;
|
|
|
|
primaryKeyAttributes = (
|
|
|
|
bookID
|
|
|
|
);
|
|
|
|
relationships = (
|
|
|
|
{
|
|
|
|
destination = authors;
|
|
|
|
isToMany = N;
|
|
|
|
joinSemantic = EOInnerJoin;
|
|
|
|
joins = (
|
|
|
|
{
|
|
|
|
destinationAttribute = authorID;
|
|
|
|
sourceAttribute = authorID;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
name = toAuthor;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
);
|
|
|
|
name = library;
|
2007-01-06 17:21:18 +00:00
|
|
|
}
|