I did the data modeling (UML) but at the time of implementation I'm doubtful how to do it.
I wanted you to have only one Person table.
In this person table I would have the field tipoPessoa("p","f")
and the fields if the person is client, barber, attendant, vendor, manufacturer, etc.
I wanted to do this implementation in Spring JPA that I saw that is very easy to use.
Here's basically how I want the table to be in the database:
HereishowIwantittobeinjava:
Iknowthatthisrelationshipbetweenpeopleandtypescouldbemanytomanygeneratingonemoretable,butforthisprojectIwanttodoitanyway.
ThequestionishowdoImakeSpringunderstandthatIwanteverythingtobeinthesametablewithExfields:pess.forn="f", "t"