Hibernate example
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
.travis.yml
LICENSE
README.md
hibernate.cfg.xml.dist
pom.xml

README.md

Hibernate example

license Build Status codebeat badge

Example project using Hibernate.

Setup

Create a Hibernate configuration file.

$ cp hibernate.cfg.xml.dist src/main/resources/hibernate.cfg.xml

Customize 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

Tests

Run the JUnit test suite with Maven

$ mvn test