Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 96fcafcd

Von Christian Ehringfeld vor mehr als 8 Jahren hinzugefügt

  • ID 96fcafcded6a2e46e2a2474de521a475813c2cd4
  • Vorgänger ce8fe6c4
  • Nachfolger 1bb76836

...

Unterschiede anzeigen:

src/entityinspector.cpp
&& propType.contains("QList"));
if ((many && !canConvertList)) {
msg = "Relation type of " + r.getPropertyName() +
" must be MANY_TO_MANY or ONE_TO_MANY.\n";
msg += "Or you can change the attribute type to QSharedPointer<T>.\n";
" must be MANY_TO_MANY or ONE_TO_MANY.\n Or you can change the attribute type to QSharedPointer<T>.\n";
} else if ((!many && canConvertList)) {
msg = "Relation type of " + r.getPropertyName() +
" must be MANY_TO_ONE or ONE_TO_ONE.\n";
msg += "Or you can change the attribute type to QList<QSharedPointer<T>>.\n";
" must be MANY_TO_ONE or ONE_TO_ONE.\n Or you can change the attribute type to QList<QSharedPointer<T>>.\n";
}
if (many && r.getType() == RelationType::ONE_TO_MANY
&& r.getMappedBy().isEmpty()) {
......
bool foundForeignMappedRelation = false;
for (auto i = foreignRelations.constBegin(); i != foreignRelations.constEnd();
++i) {
/**
* @todo compare classes of properties
**/
if (r.getMappedBy().isEmpty()
&& i.key().getPropertyName() == r.getPropertyName()) {
&& i.key().getMappedBy() == r.getPropertyName()) {
++foundMappedBy;
} else if (!r.getMappedBy().isEmpty()
&& r.getMappedBy() == i.key().getPropertyName()) {

Auch abrufbar als: Unified diff