Don’t expose your JPA entities in your REST API
Should you expose your entities in your REST API, or should you prefer to serialize and deserialize DTO classes?That’s one of the most commonly asked questions when I’m talking to developers or when I’m coaching teams who are working on a new application. There are two main reasons for these questions and all the discussions…