Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision fc71bc10

Von Christian Ehringfeld vor etwa 9 Jahren hinzugefügt

  • ID fc71bc10ab956c67bc15f31a26a86addf9e4c3c2
  • Vorgänger 12a65aab
  • Nachfolger a66d2871

error msgs improved

Unterschiede anzeigen:

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