Hibernate tutorials Comments (0)
Hibernate is one of the most popular open source object relational mapping tool for the java platform. With hibernate you can reduce you persistence code for about 95% percent. It provides completely transparent persistence for so-called Plain Old Java Objects (POJO's). It often acts as a replacement for the entity beans, but can also be used in a standalone Java application. It is often seen as a lightweight version for the 'heavy and sometimes awkward EJB Entity Beans. Many features of Hibernate can be found in the Java Persistence API.br/ Due to the large (open source) supporters, there is also much information and comprehensive support available in tools like Eclipse or IntelliJ IDEA.
The Criteria Query API
The Criteria API is used to define queries for entities and their persistent state by creating query-defining objects. Criteria queries are written using Java programming language APIs, are typesafe, and are portable. Such queries work regardless of the underlying data store.
Hibernate Criteria Query API CRUD examples
CREATE, READ, UPDATE, DELETE Statements executed with the hibernate criteria query API
Hibernate Query Language tutorials | HQL
Hibernate Query Language (HQL) is a language created by hibernate. The syntax of HQL is really simple. It lets you work with your Java Objects. HQL is quite similar to database SQL language. A crutial difference is that it lets you work with Java class names instead of table names and property names instead of column names.
Hibernate HQL Select statement examples
HQL Select Query examples
Hibernate HQL CRUD examples
Crud operations with HQL. (Select, Read, Update, Delete) + Count
I'll show you how to configure hibernate with spring and vise versa. You can either annotate your objects with annotations or use XML files to map your objects. Either way these tutorials are the starting point of learing to configure hibernate with spring.
Configure hibernate in Spring Annotations
How to configure hibernate in spring with annotations
Configure hibernate with Spring XML
How to configure hibernate with Spring 3.0
Automatically create update database with Hibernate and Spring
Generate database via correct entity mapping
Hibernate named query examples
With hibernate queries you can pre define your Query on you Model object, and reuse the named query in your repository layer or DAO layer.
Hibernate Named Query CRUD example
Using named queries in hibernate