Ensuring the persistence of a Java data model

Context

A Java application is being developed, and the persistence of a part of the application’s data model must be ensured.

Solution

You have just produced your application’s Java data model, your database’s SQL script and the Hibernate mapping files used to ensure object/relational mapping between the Java objects and the database.