This week's book giveaways are in the Cloud and AI/ML forums. We're giving away four copies each of Cloud Native Patterns and Natural Language Processing and have the authors on-line! See this thread and this one for details.
Recently, I started a new job (4 months now) and I still have a lot to learn from Spring. One of the issues we're having is that when we bring objects from the DB and map them into (Repository -> Service -> Controller) a JSON, it brings a lot of unnecessary data - For example (small example):
We have an Employee class which has a Department object and it brings the following:
If I want to build a "custom" mapper, which is the best practice? Or how can I implement something that allows me to create a JSON that brings me something like this:
I've been doing some research and I stumbled across the following recommendations: