To complete the picture, let's use the traditional (that is,
old) Hibernate mechanism, i.e., via XML files, rather than via the
annotations shown yesterday. It's definitely trickier, with many
more places where typos can occur, but that's why it's the old
mechanism. I do not recommend this approach. I recommend the
approach shown yesterday. The other players in this scenario
include PostgreSQL, as outlined in the previous blog entries in
this series.
Here's the structure of...