Spring Partial Update Object Data Binding

后端 未结 8 1771
挽巷
挽巷 2020-12-02 08:26

We are trying to implement a special partial update function in Spring 3.2. We are using Spring for the backend and have a simple Javascript frontend. I\'ve not been able to

8条回答
  •  不知归路
    2020-12-02 09:02

    I build an API that merge view objects with entities before call persiste or merge or update.

    It's a first version but I think It's a start.

    Just use the annotation UIAttribute in your POJO`S fields then use:

    MergerProcessor.merge(pojoUi, pojoDb);

    It works with native Attributes and Collection.

    git: https://github.com/nfrpaiva/ui-merge

提交回复
热议问题