#How do I represent Policies_Coverages table in Java and it's relationships?
1 messages · Page 1 of 1 (latest)
<@&1004656351647117403> please have a look, thanks.
While you are waiting for getting help, here are some tips to improve your experience:
If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.
Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.
Thinks that helps : https://stackabuse.com/a-guide-to-jpa-with-hibernate-relationship-mapping/
In this tutorial, we'll dive into Relationship Mapping with JPA and Hibernate in Java, with examples of Many-to-Many, One-to-Many, Many-to-One and One-to-One annotations.
As for the policies_coverages table, check out composite primary keys.
https://www.baeldung.com/jpa-composite-primary-keys