Revision f5b682e0
Von Christian Ehringfeld vor mehr als 8 Jahren hinzugefügt
src/entitymanager.cpp | ||
---|---|---|
}
|
||
|
||
EntityManager::EntityManager(const QString &databaseType, QString databasename ,
|
||
QString hostname,
|
||
QString username,
|
||
QString password, QString port, bool logQueries) : QObject() {
|
||
QString hostname, QString username, QString password, QString port,
|
||
bool logQueries) : QObject() {
|
||
auto db = new Database(databaseType, this->createConnection(), hostname,
|
||
databasename, username,
|
||
password,
|
||
... | ... | |
|
||
|
||
void EntityManager::oneToOne(const QSharedPointer<Entity> &entity,
|
||
const Relation &r,
|
||
const QMetaProperty &property, const bool refresh,
|
||
const Relation &r, const QMetaProperty &property, const bool refresh,
|
||
const QVariant &id) {
|
||
if (r.getMappedBy().isEmpty()) {
|
||
this->manyToOne(entity, id, property);
|
Auch abrufbar als: Unified diff
fix