Revision 6734364c
Von Christian Ehringfeld vor etwa 7 Jahren hinzugefügt
samples/simple/person.cpp | ||
---|---|---|
hash.insert("groups", CuteEntityManager::Relation("groups",
|
||
RelationType::MANY_TO_MANY,
|
||
QString("persons")));
|
||
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",
|
||
... | ... | |
void Person::addAddress(Address *address) {
|
||
this->addresses.append(QSharedPointer<Address>(address));
|
||
}
|
||
|
||
QList<QSharedPointer<Group> > Person::getMaintainedGroups() const {
|
||
return maintainedGroups;
|
||
}
|
||
|
||
void Person::setMaintainedGroups(const QList<QSharedPointer<Group> > &value) {
|
||
maintainedGroups = value;
|
||
|
||
}
|
||
|
Auch abrufbar als: Unified diff
Revert "Pupil persisting problem"
This reverts commit 57853172b5a545ed71b9c36c8a874e98b998c5c1.