jeudi 18 juin 2015

How to separate object to DTO and BO?

I have an old object that contains data and behaviour. This object is serialized by JSON to be stored in a file and transmitted between users.

Now I want to separate object to data transfer object and business object, because I need to serialize only data, without behaviour. But I have issue with deserializing of old object.

How I can correctly to do this separation?

Thx!

Aucun commentaire:

Enregistrer un commentaire