mirror of
https://gitlab.com/spaceti-app/integrations/common/server-sdk.git
synced 2026-07-12 10:40:36 +02:00
Not using Quid
This commit is contained in:
parent
583a652cff
commit
e266b8a8b4
@ -7,7 +7,7 @@
|
||||
class BookTable : public serversdk::DatabaseTable
|
||||
{
|
||||
Q_OBJECT
|
||||
TABLE_PROPERTY(QUuid, uuid, setUuid, QUuid());
|
||||
TABLE_PROPERTY(QString, uuid, setUuid, QString());
|
||||
TABLE_PROPERTY(int, id, setId, 0);
|
||||
TABLE_PROPERTY(QString, name, setName, "Test");
|
||||
};
|
||||
@ -110,7 +110,7 @@ void DatabaseTableTest::json_test()
|
||||
QCOMPARE(table->id(), 0);
|
||||
QCOMPARE(table->name(), QStringLiteral("Test"));
|
||||
|
||||
QByteArray expected(R"({"id":0,"name":"Test","uuid":"{00000000-0000-0000-0000-000000000000}"})");
|
||||
QByteArray expected(R"({"id":0,"name":"Test","uuid":""})");
|
||||
QCOMPARE(table->jsonData(), expected);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user