Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 813205af

Von Christian Ehringfeld vor etwa 9 Jahren hinzugefügt

  • ID 813205af2fc6abe9184ff8105e6e6a3b5989f0d4
  • Vorgänger 9c2f773f
  • Nachfolger 97f9a843

wip, not working

Unterschiede anzeigen:

src/entity.h
#include <QMap>
#include <QDebug>
#include <QObject>
#include <QMetaProperty>
#include "relation.h"
#include <QStringList>
namespace CuteEntityManager {
......
* @return
*/
virtual QHash<QString, Relation> getRelations();
/**
* The hashmap keys must be equal to the ones which are defined in the hashmap of getRelations()
* The EntityManager will only introspect Entity Objects, non-Entity inherited relations will be processed in a other way
* You must use this method, if you have a n-n Relation with Entity Objects.
* @brief getRelationObjects
* @return
*/
virtual QHash<QString, QSharedPointer<Entity> > getRelationObjects();
/**
* You should return the names of properties which should not persisted e.g. Properties which are only exposed to qml
* @brief getTransientAttributes
......
virtual QStringList getBLOBColumns();
//return value must be the exact name defined in Q_PROPERTY
virtual QString getPrimaryKey();
QHash<QString, QMetaProperty> getMetaProperties();
qint32 getId() const;
void setId(const qint32 &value);
qint64 getId() const;
void setId(const qint64 &value);
protected:
qint32 id;
protected:
qint64 id;
};
}
#endif // ENTITY_H

Auch abrufbar als: Unified diff