Ask questions and see you on 3 June at 8pm CET: youtube.com/c/bienadam
Also check out the latest episode:
Please keep the questions as short and as concise as only possible. Feel free to ask multiple, shorter questions. I will also answer some questions in my "shorts" youtube.com/@bienadam/shorts between the shows.
Upcoming airhacks.tv events will also be announced at meetup.com/airhacks
New: The airhacks.tv discord server: discord.gg/airhacks
Hi Adam,
First, let me thank you for your amazing work over the years.
Now my question 😄
How would you map in a project that use BCE an "entity" like e.g.
Post
from a Blog, I have aPost
class on the entity layer, that is my JPA entity.I would use that in the request and response from my rest api but I don't want to return the whole JPA entity to my client.
A good approach would be to have a
PostDto
class on the Boundary layer for the response?And how would you do if you want a different request for the creation of the
Post
as well, it could be aCreatePostDto
on the Boundary layer?Thanks,
João