transformation of DTO and entities

example for book entity