Revision e24791d7
Von Christian Ehringfeld vor fast 9 Jahren hinzugefügt
src/relation.cpp | ||
---|---|---|
this->propertyName = propertyName;
|
||
this->type = type;
|
||
this->optional = optional;
|
||
this->cascadeType = {ALL};
|
||
this->cascadeType = {MERGE,
|
||
PERSIST,
|
||
REFRESH};
|
||
}
|
||
|
||
Relation::Relation(QString propertyName, RelationType type, QString mappedBy,
|
||
... | ... | |
this->type = type;
|
||
this->mappedBy = mappedBy;
|
||
this->optional = true;
|
||
if (this->type == MANY_TO_ONE) {
|
||
if (this->type == ONE_TO_ONE) {
|
||
this->cascadeType = {ALL};
|
||
} else {
|
||
this->cascadeType = cascadeType;
|
Auch abrufbar als: Unified diff
small update