Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d518fe54

Von Christian Ehringfeld vor fast 9 Jahren hinzugefügt

  • ID d518fe5466ea2aa9a5582e1e84b983ba1f4e93e9
  • Vorgänger 4b90a7ee
  • Nachfolger 5d93390e

update

Unterschiede anzeigen:

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