Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-server
Commits
5d5ea963
Verified
Commit
5d5ea963
authored
1 year ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
WIP: MAINT: refactor retrieve properties (move backend-logic to backend)
parent
cc12cb76
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!103
Release 0.11.0
,
!99
F refactor retrieve/insert properties
Pipeline
#39654
passed
1 year ago
Stage: info
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/caosdb/server/database/backend/implementation/MySQL/MySQLInsertEntityProperties.java
+7
-2
7 additions, 2 deletions
...end/implementation/MySQL/MySQLInsertEntityProperties.java
with
7 additions
and
2 deletions
src/main/java/org/caosdb/server/database/backend/implementation/MySQL/MySQLInsertEntityProperties.java
+
7
−
2
View file @
5d5ea963
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment