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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user