libs-gdl2/Documentation/GDL2Intro/Examples/library.eomodel
Matt Rice 1ad7507ac0 * EOAdaptors/SQLite3/SQLite3Channel.m (-evaluateExpression:):
Continue evaluating the expression until all statements are evaluated
        or rows are returned.
        * Documentation/GDL2Intro.texi: Add another section on relationships.
        * Documentation/Examples/library.eomodel: Add relationships as class
        properties.
        * Documentation/Examples/GNUmakefile: Add GNUmakefile.eoexample2.
        * Documentation/Examples/GNUmakefile.eoexample2: New file.
        * Documentation/Examples/eoexample2.m: New example for relationships.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@24319 72102866-910b-0410-8b05-ffd578937521
2007-01-06 17:21:18 +00:00

96 lines
1.7 KiB
Text

{
EOModelVersion = 2;
adaptorName = SQLite3;
connectionDictionary = {
databasePath = "/tmp/example.db";
};
entities = (
{
attributes = (
{
columnName = authorID;
externalType = integer;
name = authorID;
valueClassName = NSNumber;
},
{
columnName = name;
externalType = varchar;
name = name;
valueClassName = NSString;
}
);
className = EOGenericRecord;
classProperties = (
name,
toBooks
);
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 = (
title,
toAuthor
);
externalName = books;
name = books;
primaryKeyAttributes = (
bookID
);
relationships = (
{
destination = authors;
isToMany = N;
joinSemantic = EOInnerJoin;
joins = (
{
destinationAttribute = authorID;
sourceAttribute = authorID;
}
);
name = toAuthor;
}
);
}
);
name = library;
}