http://docs.jboss.org/hibernate/orm/4.2/quickstart/en-US/html/ch02.html 2.1. The Hibernate configuration file
http://docs.jboss.org/hibernate/orm/4.2/quickstart/en-US/html/ch02.html#hibernate-gsg-tutorial-basic-entity 2.2. The entity Java class
http://docs.jboss.org/hibernate/orm/4.2/quickstart/en-US/html/ch02.html#hibernate-gsg-tutorial-basic-mapping 2.3. The mapping file
http://docs.jboss.org/hibernate/orm/4.2/quickstart/en-US/html/ch02.html#hibernate-gsg-tutorial-basic-test 2.4. Example code
javadoc and source for eclipse
javadoc and source for eclipse
http://stackoverflow.com/questions/18185683/hibernate-mapping-not-found-exception 'Move User.hbm.xml to proper package (testing.ground.beans) in src/main/resources . I guess your build tool doesn't pick the resources from src/main/java'
format xml by eclipse
avoid java.lang.ClassNotFoundException: org.h2.Driver