Projekt

Allgemein

Profil

Herunterladen als
Herunterladen (646 Bytes) Statistiken
| Zweig: | Revision:
24c5480c Christian Ehringfeld
#ifndef RELATION_H
#define RELATION_H
#include <QString>
namespace CuteEntityManager {
enum RelationType {
d99101ae Christian Ehringfeld
BELONGS_TO,
HAS_MANY,
HAS_ONE,
MANY_MANY,
24c5480c Christian Ehringfeld
};

class Relation {
public:
Relation();
Relation(QString propertyName, RelationType type, bool optional = true);
~Relation();
RelationType getType() const;
void setType(const RelationType &value);

QString getPropertyName() const;
void setPropertyName(const QString &value);

bool getOptional() const;
void setOptional(bool value);

protected:
QString propertyName;
RelationType type;
bool optional;

};
}

#endif // RELATION_H