How to Create an Application Using Hibernate - By ICEfaces Hibernate is a powerful, high performance object/relational persistence and query service. Hibernate lets you develop persistent classes following object-oriented idiom - including association, inheritance, polymorphism, composition, and collections. Hibernate allows you to express queries in its own portable SQL extension (HQL), as well as in native SQL, or with an object-oriented Criteria and Example API. For this tutorial we will be using the Student Registration example application. This applications main function is to add, update, and delete students from the database. Additional functionality includes being able to register courses to a student, this will help to show how Hibernate treats relationships between classes in the database.
This tutorial gives a basic idea on how to connect and use Hibernate with a database. Hibernate has many other functions and uses that go beyond this tutorial. A good resource is the Hibernate web site's documentation. NOTE: This application uses a MySQL database therefore an up-to-date instance of MySQL is needed to run. The sql script to create and populate the database is included in the /sqlScripts directory. This tutorial will discuss the following topics related to using Hibernate: Read more...
|