Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision af84b9c4

Von Christian Ehringfeld vor fast 9 Jahren hinzugefügt

  • ID af84b9c49dc80f70ee77216012cb415cba778e7e
  • Vorgänger 94bf67c7
  • Nachfolger 09b2592d

example update

Unterschiede anzeigen:

samples/example/models/person.cpp
#include "person.h"
#include "contact.h"
#include "address.h"
Person::Person(QObject *parent): Entity(parent) {
}
......
hash.insert("maintainedGroups", CuteEntityManager::Relation("maintainedGroups",
RelationType::ONE_TO_MANY,
QString("mainTeacher")));
hash.insert("contacts", CuteEntityManager::Relation("contacts",
RelationType::MANY_TO_MANY));
hash.insert("addresses", CuteEntityManager::Relation("addresses",
RelationType::MANY_TO_MANY));
return hash;
}

Auch abrufbar als: Unified diff