summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/domain/applicationdomaintype.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h
index f7e681a..1486f00 100644
--- a/common/domain/applicationdomaintype.h
+++ b/common/domain/applicationdomaintype.h
@@ -64,6 +64,14 @@ public:
64 return object; 64 return object;
65 } 65 }
66 66
67 template <class DomainType>
68 static DomainType createEntity(const QByteArray &resourceInstanceIdentifier)
69 {
70 DomainType object(resourceInstanceIdentifier);
71 object.mIdentifier = QUuid::createUuid().toByteArray();
72 return object;
73 }
74
67 virtual ~ApplicationDomainType(); 75 virtual ~ApplicationDomainType();
68 76
69 bool hasProperty(const QByteArray &key) const; 77 bool hasProperty(const QByteArray &key) const;