Revision d518fe54
Von Christian Ehringfeld vor fast 9 Jahren hinzugefügt
samples/example/models/group.cpp | ||
---|---|---|
|
||
const QHash<QString, CuteEntityManager::Relation> Group::getRelations() const {
|
||
auto hash = QHash<QString, CuteEntityManager::Relation>();
|
||
hash.insert("pupils", CuteEntityManager::Relation("pupils",
|
||
RelationType::MANY_TO_MANY));
|
||
hash.insert("persons", CuteEntityManager::Relation("persons",
|
||
RelationType::MANY_TO_MANY));
|
||
hash.insert("pupils", CuteEntityManager::Relation("pupils",
|
||
RelationType::MANY_TO_MANY, QString("groups")));
|
||
hash.insert("mainTeacher", CuteEntityManager::Relation("mainTeacher",
|
||
RelationType::MANY_TO_ONE));
|
||
return hash;
|
Auch abrufbar als: Unified diff
update