Closed dvt32 closed 1 month ago
Instead of modifying & returning the entities in the REST controllers, use DTOs (MovieDto, TvShowDto, etc).
MovieDto
TvShowDto
More info here: https://www.baeldung.com/java-entity-vs-dto
You may also use MapStruct for mapping entities to DTOs and vice-versa. More info here: https://www.baeldung.com/mapstruct
I have created DTO's and implemented MapStruct
Instead of modifying & returning the entities in the REST controllers, use DTOs (
MovieDto
,TvShowDto
, etc).More info here: https://www.baeldung.com/java-entity-vs-dto