We are trying to build a one-to-many relationship. Trying to understand how this works, we came across this example , which shows how to do it.
The example shows a reasonable ER diagram, but generally speaking, the one-to-many relationship does not need an auxiliary table. We could insert a column StudentIdinto a table Phoneand achieve a join by joining two tables with this identifier. In this example, in contrast, they need to join the three tables.
We are wondering if this behavior is justified by some good practice that simplifies management for Hibernate or is it just the mistake of the guy who wrote the article.
Any thoughts?
Dacav source
share