Ask questions and see you at December, 9th 8 pm CET: youtube.com/c/bienadam
Also checkout recent episode:
Please keep the questions as short and as concise as only possible. Feel free to ask several, shorter questions. I will also cover some questions in my "shorts" youtube.com/@bienadam/shorts between the shows.
Upcoming airhacks.tv events are also going to be announced at meetup.com/airhacks
New: the airhacks.tv discord server: discord.gg/airhacks
Hi again Adam!
One more question, I see that you expose the JPA entity on the boundary layer, sometimes as a response and others as a request. What is the best approach if you need to do some bean validation on those objects to return 400? Is to create a specific class for the request? Or you add the bean validations annotations to the jpa entity class? Or create a method to validate and if there is a problem it returns 400?
e.g. the ebank repository that you have, imagine that you wanted to return 400 if you try to create an account without the name of the person (new field) you would add that validation to the method “isValidForCreation”?
Thanks!