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