Homemade vs. Java Serialization

前端 未结 14 748
离开以前
离开以前 2021-02-04 06:16

I have a certain POJO which needs to be persisted on a database, current design specifies its field as a single string column, and adding additional fields to the table is not a

14条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-04 06:54

    You might try Protocol Buffers, it is a open-source project from Google, it is said to be fast (generates shorter serialized form than XML, and works faster). It also handles addition of new field gently (inserts default values).

提交回复
热议问题