Revision 91ed1164
Von Christian Ehringfeld vor fast 9 Jahren hinzugefügt
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
small update