Skip to content
Snippets Groups Projects
Verified Commit 5d5ea963 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

WIP: MAINT: refactor retrieve properties (move backend-logic to backend)

parent cc12cb76
Branches
Tags
2 merge requests!103Release 0.11.0,!99F refactor retrieve/insert properties
Pipeline #39654 passed
......@@ -130,11 +130,16 @@ public class MySQLInsertEntityProperties extends MySQLTransaction
if (property.getStatementStatus() == ReplacementStatus.REPLACEMENT) {
// special treatment: swap value and id. This is part of the back-end specification for the
// representation of replacement.
// representation of replacement. The reason why this happens here (and
// not in the replacement class for instance) is that the original
// Property must not be changed for this. Otherwise we would have to
// change it back after the insertion or internally used replacement ids
// would be leaked.
// value should be the
// value is to be the id of the property which is being replaced
fp.value = fp.id.toString();
// id is to be the replacement id (an internally used/private id)
fp.id = ((ReferenceValue) property.getValue()).getId().toInteger();
table = Table.reference_data;
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment