It contains some of the basic and advanced Hibernate examples. Start from example1 and keep going through all the examples in the sequence. By the end of Tutorial most of your Hibernate doubts will be clear and also you will have hands on experience of Hibernate Coding.
All these examples up to example21 are created using Hibernate 4.3.6.Final version.
Whereas from example22 there is a need to use Hibernate 3.6.0.Final version hence next few examples are moved to HibernateTutorialBestTwo Project in the repository:
https://github.com./ShubhSingh/HibernateTutorialBestTwo
Steps to Setup DerbyDB:
- Start Derby by running startNetworkServer.bat
- Now In Eclipse open Data Source Explorer View.
- Create a new connection with name HibernateDerbyDB and enter following values.
- Host: localhost
- port: 1527
- user: user
- password: Any password that you created.
- URL: jdbc:derby://localhost:1527/HibernateDerbyDB;create=true
- Finally Check Test Connection.