Revision ba800d6d
Von Christian Ehringfeld vor etwa 9 Jahren hinzugefügt
src/relation.cpp | ||
---|---|---|
this->propertyName = propertyName;
|
||
this->type = type;
|
||
this->optional = optional;
|
||
this->tableName = "";
|
||
this->cascadeType = ALL;
|
||
}
|
||
|
||
Relation::Relation(QString propertyName, RelationType type, QString mappedBy, QString tableName,
|
||
CascadeType cascadeType) {
|
||
this->propertyName = propertyName;
|
||
this->type = type;
|
||
this->mappedBy = mappedBy;
|
||
this->optional = true;
|
||
this->tableName = tableName;
|
||
this->cascadeType = cascadeType;
|
||
|
||
}
|
||
|
||
Relation::~Relation() {
|
||
... | ... | |
void Relation::setOptional(bool value) {
|
||
optional = value;
|
||
}
|
||
QString Relation::getMappedBy() const {
|
||
return mappedBy;
|
||
}
|
||
|
||
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 {
|
||
return cascadeType;
|
||
}
|
||
|
||
void Relation::setCascadeType(const CascadeType &value) {
|
||
cascadeType = value;
|
||
}
|
||
|
||
|
||
|
Auch abrufbar als: Unified diff
wip