summaryrefslogtreecommitdiffstats
path: root/common/storage/entitystore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/storage/entitystore.cpp')
-rw-r--r--common/storage/entitystore.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/storage/entitystore.cpp b/common/storage/entitystore.cpp
index 1417861..7414f49 100644
--- a/common/storage/entitystore.cpp
+++ b/common/storage/entitystore.cpp
@@ -130,6 +130,8 @@ bool EntityStore::add(const QByteArray &type, const ApplicationDomain::Applicati
130 auto entity = *ApplicationDomain::ApplicationDomainType::getInMemoryRepresentation<ApplicationDomain::ApplicationDomainType>(entity_, entity_.availableProperties()); 130 auto entity = *ApplicationDomain::ApplicationDomainType::getInMemoryRepresentation<ApplicationDomain::ApplicationDomainType>(entity_, entity_.availableProperties());
131 entity.setChangedProperties(entity.availableProperties().toSet()); 131 entity.setChangedProperties(entity.availableProperties().toSet());
132 132
133 SinkTrace() << "New entity " << entity;
134
133 preprocess(entity); 135 preprocess(entity);
134 d->typeIndex(type).add(entity.identifier(), entity, d->transaction); 136 d->typeIndex(type).add(entity.identifier(), entity, d->transaction);
135 137
@@ -205,7 +207,7 @@ bool EntityStore::modify(const QByteArray &type, const ApplicationDomain::Applic
205 } 207 }
206 208
207 newEntity.setChangedProperties(newEntity.availableProperties().toSet()); 209 newEntity.setChangedProperties(newEntity.availableProperties().toSet());
208 SinkTrace() << "All properties: " << newEntity.availableProperties(); 210 SinkTrace() << "Modified entity " << newEntity;
209 211
210 flatbuffers::FlatBufferBuilder fbb; 212 flatbuffers::FlatBufferBuilder fbb;
211 d->resourceContext.adaptorFactory(type).createBuffer(newEntity, fbb, metadataFbb.GetBufferPointer(), metadataFbb.GetSize()); 213 d->resourceContext.adaptorFactory(type).createBuffer(newEntity, fbb, metadataFbb.GetBufferPointer(), metadataFbb.GetSize());
@@ -251,6 +253,8 @@ bool EntityStore::remove(const QByteArray &type, const QByteArray &uid, bool rep
251 preprocess(current); 253 preprocess(current);
252 d->typeIndex(type).remove(current.identifier(), current, d->transaction); 254 d->typeIndex(type).remove(current.identifier(), current, d->transaction);
253 255
256 SinkTrace() << "Removed entity " << current;
257
254 const qint64 newRevision = DataStore::maxRevision(d->transaction) + 1; 258 const qint64 newRevision = DataStore::maxRevision(d->transaction) + 1;
255 259
256 // Add metadata buffer 260 // Add metadata buffer