The mapping file tells Hibernate what table in the database it has to access, and what columns in that table it should use.The basic structure of a mapping file looks like this: Hibernate DTD is sophisticated.Save this file to the Hibernate needs to know how to load and store objects of the persistent class.This is where the Hibernate mapping file comes into play.The tutorial is based on an earlier tutorial developed by Michael Gloegl.
If you are new to Hibernate and Object/Relational Mapping or even Java, please follow these steps: Intended for new users, this chapter provides an step-by-step introduction to Hibernate, starting with a simple application using an in-memory database.
The only change is that you will need to manually account for all the needed dependencies.
If you use something like Ivy providing transitive dependency management you would still use the dependencies mentioned below.
We will be using the "standard layout" advocated by alot of build tools such as Maven.
Maven, in particular, has a good resource describing this layout.