I decided not to show the use of some more complex mappings as I want to focus on the most common tasks. If you are interested in this mappings have a look at the test cases coming with the Hibernate download.