Revision 3fd96253
Von Christian Ehringfeld vor fast 9 Jahren hinzugefügt
samples/example/main.cpp | ||
---|---|---|
#include "models/contact.h"
|
||
#include "models/group.h"
|
||
#include "models/faker/createfakemodeldata.h"
|
||
#include "models/enums.h"
|
||
#include <typeinfo>
|
||
/**
|
||
* create,remove und merge funktionieren
|
||
... | ... | |
QStringList inits = QStringList() << "Contact" << "Address" << "Person" << "Pupil" << "Group";
|
||
e->startup("0.1",inits);
|
||
|
||
QSharedPointer<CuteEntityManager::Entity> p = QSharedPointer<CuteEntityManager::Entity>(new Person("Max", "Mustermann", MALE, "", "", "",
|
||
QSharedPointer<CuteEntityManager::Entity> p = QSharedPointer<CuteEntityManager::Entity>(new Person("Max", "Mustermann", Enums::Gender::MALE, "", "", "",
|
||
QDate::currentDate()));
|
||
Group *g = new Group();
|
||
CreateFakeModelData::fillGroup(g);
|
Auch abrufbar als: Unified diff
update, many to many is not fully working, but persisting works