Let's say I have a domain object `Project` locally...
# tornadofx
n
Let's say I have a domain object
Project
locally and and a
Project
object remotly which can by updated via Rest. Locally I have a
ItemViewModel
called
ProjectModel
I want that all changes will be automatially be synced. My idea was to inject my
rest controller
int the
ProjectModel
and override the
commit
function. The
commit
function will call the
super.commit(...)
and call the
rest-api
to sync the remote object... is this the right way to to it?