Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6734364c

Von Christian Ehringfeld vor etwa 7 Jahren hinzugefügt

  • ID 6734364c6f0382198005314dcb726106996ba6cd
  • Vorgänger 1a9e6412
  • Nachfolger 9c269b1f

Revert "Pupil persisting problem"

This reverts commit 57853172b5a545ed71b9c36c8a874e98b998c5c1.

Unterschiede anzeigen:

samples/simple/group.cpp
const QHash<QString, CuteEntityManager::Relation> Group::getRelations() const {
auto hash = QHash<QString, CuteEntityManager::Relation>();
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));
......
void Group::setName(const QString &value) {
name = value;
}
QList<QSharedPointer<Pupil> > Group::getPupils() const {
return pupils;
}
void Group::setPupils(const QList<QSharedPointer<Pupil> > &value) {
pupils = value;
}
void Group::addPupil(Pupil *pupil) {
this->pupils.append(QSharedPointer<Pupil>(pupil));
}
QSharedPointer<Pupil> Group::pupilAt(int i) {
return this->pupils.at(i);
}
QSharedPointer<Person> Group::getMainTeacher() const {
return mainTeacher;

Auch abrufbar als: Unified diff