Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2d9fab10

Von Christian Ehringfeld vor fast 9 Jahren hinzugefügt

  • ID 2d9fab1088fc73e192d90cdc2ea7c865adf9099e
  • Vorgänger a06633f7
  • Nachfolger 706de2e8

n-1 relation

Unterschiede anzeigen:

src/relation.h
#ifndef RELATION_H
#define RELATION_H
#include <QString>
#include <QHash>
namespace CuteEntityManager {
enum RelationType {
ONE_TO_ONE, //e.g. specialization, heritage
......
bool optional;
};
inline bool operator==(const Relation &e1, const Relation &e2) {
return e1.getPropertyName() == e2.getPropertyName();
}
inline uint qHash(const Relation &key, uint seed) {
return qHash(key.getPropertyName(), seed);
}
}
#endif // RELATION_H

Auch abrufbar als: Unified diff