And here's my database schema which I am abit uncertain if it is correct :
My question is
1) Is the above schema correct? Should I leave out reference foreign key in SpringBoot JPA web app?
2) do I need to use One-to-Many and Many-to-One to annotate the entities if the case applies? cos we can always us Join Column at the query in the Repository or Service layer for greater flexibity and perhaps 'optimization' ?
3) if the variables/attributes/fields and the names in my entity class are the same, I do not have to put @column right ?
Thank you for your help.
Seriously? That's what you're going with? I prefer this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners