now Model.update() and Model.insert() can update/insert the whole tree with child models

(at the moment without lists/vectors only model childs)



git-svn-id: svn://ttmath.org/publicrep/morm/trunk@1205 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2019-09-04 16:02:18 +00:00
parent 7ff05f493c
commit d2f851faf9
9 changed files with 228 additions and 89 deletions

View File

@@ -52,6 +52,7 @@ CREATE TABLE public.attachment (
content text,
some_flags bool,
created_date timestamp with time zone,
bigint language_id,
primary key(id)
);
@@ -68,13 +69,17 @@ public:
std::string content;
bool some_flags;
PT::Date created_date;
Language language;
void map_fields()
{
field(L"id", id, false, false, true);
field(L"person_id", person_id);
field(L"name", name);
field(L"language_id", language);
field(L"content", content);
field(L"some_flags", some_flags);
field(L"created_date", created_date);