K
K
KirylLapouski2017-11-16 11:37:12
MySQL
KirylLapouski, 2017-11-16 11:37:12

Hibernate. How best to map?

Hello, there is such a table structure in the database. There are three tables: a lab, a hospital, and a link table that stores which lab serves which hospital. In addition, the linking table contains the contract number and contract term.
5a0d41a57108e720678448.png
The application itself has two pojo classes: Hospital and Laboratory. Store contract data between the lab and the hospital in the Lab class.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question