I'm developing a project with domain objects that contains quite a few fields. The fields only store numbers as codes or IDs.
To display these domain objects, I have to write some logic to convert the codes to display labels.
Now, with my most straightforward thoughts, I'd just write a utility class to do the conversion.
However, since this should be a very common cases, I am just wondering is there any better practice for doing this kind of job? (in a more object-oriented way)
Is there any design pattens for this context?
Thank you so much!