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
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
Hibernat is a Java ORM (object Relationship Mapping ) framework. You can map database Table to java pojo class, db record to java object of pojo , and database column to properties of pojo.
Continue reading Java Hibernate ORM Tutorials
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.