Sample of using Hibernate Annotations by reducing XML configuration files thus making it simpler to define required metadata directly into our Java code. When using annotations, we no longer need the additional mapping file (*.hbm.xml). The metadata for the ORM is specified in the individual classes.
On some laptops, e.g. Acer Aspire, sleep will work once, and then fail and hang the second time. The default behaviour of hibernation works on a wider range of laptops.