Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision da565582

Von Christian Ehringfeld vor fast 9 Jahren hinzugefügt

  • ID da565582698d8e26cfc84ba36a51874c1aaf958d
  • Vorgänger d933d48e
  • Nachfolger 38a2aaf2

small 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", MANY_TO_MANY));
hash.insert("persons", CuteEntityManager::Relation("persons", MANY_TO_MANY));
hash.insert("pupils", CuteEntityManager::Relation("pupils", RelationType::MANY_TO_MANY));
hash.insert("persons", CuteEntityManager::Relation("persons", RelationType::MANY_TO_MANY));
hash.insert("mainTeacher", CuteEntityManager::Relation("mainTeacher",
MANY_TO_ONE));
RelationType::MANY_TO_ONE));
return hash;
}

Auch abrufbar als: Unified diff