Native SQL quey in Hibernate is powerful way of writing your own native sql query, in spite of relationship , Query Criteria, and HQL (Hibernate Query Language). If your relationship is well defined, then you can use HQL else you have to use your own database specific native sql query.
Continue reading Hibernate – native SQL query example
Hibernate Query Language (HQL) is a query language in the Hibernate. If your relationship is well defined then you can use HQL else you have to you native query language which I mention in another post.
Continue reading Hibernate Query Language (HQL) with CRUD example
Well, many-to-one is the type of relationship in Hibernate. This is child to parent relationship where many child can belongs to one parent. Here, you have to establishe relationship between two different entity/domain model class.
Continue reading Hibernate – many-to-one relationship example
Well, one-to-many is the type of relationship in Hibernate. This is parent child relationship where one parent can have many child. Here, you have to establishe relationship between two different entity/domain model class.
Continue reading Hibernate – one-to-many relationship example
Why Composite key required in database? when you have to combine multiple key and would like to form a primary key. or you can say when you want a primary key by combining of more than one key. And you know, primary key is unique and not nullable in database.
Continue reading Hibernate: composite key example
This is Hibernate hello world program example or you can say this is first program for Hibernate jumpstart program. For simplicity, I keep minimum dependency for hello world program of Hibernate.
Continue reading Hibernate hello world example
Well, In this post we will talk about rich feature set of Hibernate. Let us go though one by one.
Continue reading What are the Features in Hibernate?
Hibernate is an open source ORM (Object Relational Mapping) framework. Hibernate simplifies the development of java application to interact with the database. It reside in persistence tier in classic modern tiered based architecture. Hibernate in turns maps as follows:
- database table to java POJO class
- database row to object
- database column to java property.