Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 91ed1164

Von Christian Ehringfeld vor fast 9 Jahren hinzugefügt

  • ID 91ed1164b3aede1175b03cf33b657887516c4b2d
  • Vorgänger 5c53ac99
  • Nachfolger e24791d7

small update

Unterschiede anzeigen:

src/relation.cpp
this->propertyName = propertyName;
this->type = type;
this->optional = optional;
this->tableName = "";
this->cascadeType = ALL;
this->cascadeType = {ALL};
}
Relation::Relation(QString propertyName, RelationType type, QString mappedBy,
QString tableName,
CascadeType cascadeType) {
QList<CascadeType> cascadeType) {
this->propertyName = propertyName;
this->type = type;
this->mappedBy = mappedBy;
this->optional = true;
this->tableName = tableName;
if (this->type == MANY_TO_ONE) {
this->cascadeType = ALL;
this->cascadeType = {ALL};
} else {
this->cascadeType = cascadeType;
}
......
void Relation::setMappedBy(const QString &value) {
mappedBy = value;
}
QString Relation::getTableName() const {
return tableName;
}
void Relation::setTableName(const QString &value) {
tableName = value;
}
CascadeType Relation::getCascadeType() const {
QList<CascadeType> Relation::getCascadeType() const {
return cascadeType;
}
void Relation::setCascadeType(const CascadeType &value) {
void Relation::setCascadeType(const QList<CascadeType> &value) {
cascadeType = value;
}

Auch abrufbar als: Unified diff