How to version dynamic business Objects/Data?

后端 未结 5 1622
情歌与酒
情歌与酒 2021-02-01 00:02

We are developing a large applications which are related to business. You can find these applications similar to some ERP, CRM, etc.

Now we have a requirement that we ne

5条回答
  •  太阳男子
    2021-02-01 00:13

    If you aren't doing invasive (I see generic as competing with invasive), then I think your option is to do full serialization. At each version you just take a snapshot of the object and serialize it to whatever is appropriate.

    If you were confined to a database for instance, just save it with a timestamp and take the most recent timestamp as current. I would avoid thinking about it as solely a database problem though. You should be allowed to serialize outside of the system for things like partial results, testing, sanity, etc.

提交回复
热议问题