mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-02-23 19:30:54 +00:00
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
96 lines
1.7 KiB
Text
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;
|
|
}
|