Example project using Hibernate.
Create a Hibernate configuration file.
$ cp hibernate.cfg.xml.dist src/main/resources/hibernate.cfg.xmlCustomize the URL in the configuration file with your local database username and password.
Package and run the application with Maven
$ mvn package -Dmaven.test.skip=true
$ java -jar target/hibernate-example-1.0.0.jar
Run the JUnit test suite with Maven
$ mvn test