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

FIX problems from last merge of dev

parent a1599371
No related branches found
No related tags found
No related merge requests found
......@@ -144,7 +144,7 @@ public class RetrieveFullEntity extends BackendTransaction {
RetrieveEntity ref = new RetrieveEntity(value.getId());
// recursion! (Only for the matching selections)
retrieveFullEntity(ref, getSubSelects(selections, propertyName));
value.setEntity(ref);
value.setEntity(ref, true);
}
}
}
......
/*
* ** header v3.0
* This file is a part of the CaosDB Project.
*
* Copyright (C) 2018 Research Group Biomedical Physics,
* Max-Planck-Institute for Dynamics and Self-Organization Göttingen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* ** end header
*/
* ** header v3.0
* This file is a part of the CaosDB Project.
*
* Copyright (C) 2018 Research Group Biomedical Physics,
* Max-Planck-Institute for Dynamics and Self-Organization Göttingen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* ** end header
*/
package caosdb.server.entity;
import caosdb.server.database.proto.SparseEntity;
......
......@@ -574,6 +574,7 @@ public class EntityWrapper implements EntityInterface {
@Override
public String getIdVersion() {
return this.entity.getIdVersion();
}
@Override
public void addToElement(Element element, SetFieldStrategy strategy) {
......
......@@ -89,7 +89,7 @@ public class PropertyToElementStrategyTest {
PropertyToElementStrategy strategy = new PropertyToElementStrategy();
SetFieldStrategy setFieldStrategy = new SetFieldStrategy().addSelection(parse("height"));
EntityInterface property = windowProperty;
((ReferenceValue) property.getValue()).setEntity(window);
((ReferenceValue) property.getValue()).setEntity(window, true);
Element element = strategy.toElement(property, setFieldStrategy);
assertEquals("Property", element.getName());
assertEquals("2345", element.getAttributeValue("id"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment