Revision fc71bc10
Von Christian Ehringfeld vor etwa 9 Jahren hinzugefügt
src/entitymanager.cpp | ||
---|---|---|
const QSharedPointer<Entity> &relatedEntity) {
|
||
bool propertyIsValid = prop.isValid() && prop.isReadable() && prop.isWritable();
|
||
if (!propertyIsValid) {
|
||
qDebug() << "Relation is incomplete:" << r.getPropertyName();
|
||
qDebug() << "Involved entities: " << EntityHelper::getClassName(
|
||
qWarning() << "Relation is incomplete:" << r.getPropertyName();
|
||
qWarning() << "Involved entities: " << EntityHelper::getClassName(
|
||
e.data()) <<
|
||
"(MainEntitiy) and " << EntityHelper::getClassName(relatedEntity.data());
|
||
}
|
||
... | ... | |
|
||
void EntityManager::missingManyToManyTable(const QString &tblName,
|
||
const QSharedPointer<Entity> &e, const Relation &r) {
|
||
qDebug() << "MANY_TO_MANY Table " << tblName << " is missing";
|
||
qDebug() << "Entity " << EntityHelper::getClassName(e.data()) << " is affected";
|
||
qDebug() << "Relation of property: " << r.getPropertyName();
|
||
qWarning() << "MANY_TO_MANY Table " << tblName << " is missing";
|
||
qWarning() << "Entity " << EntityHelper::getClassName(e.data()) << " is affected";
|
||
qWarning() << "Relation of property: " << r.getPropertyName();
|
||
/**
|
||
@todo wait for Qt 5.5.1
|
||
@see https://codereview.qt-project.org/#/c/122232/
|
||
... | ... | |
}
|
||
rc = this->db->exec(query);
|
||
if (!rc) {
|
||
qDebug() << "class is erroneous:" << EntityHelper::getClassname(entity.data());
|
||
qWarning() << "class is erroneous:" << EntityHelper::getClassname(entity.data());
|
||
break;
|
||
}
|
||
if (first) {
|
Auch abrufbar als: Unified diff
error msgs improved