Posts

Showing posts from December, 2019

Hibernate Tutorial

What is hibernate ? Hibernate is an ORM tool used for data transfer, between Java application and database, in the form of object. Hibernate is developed by Gavin King. Why not JDBC ? 1.  Code written in jdbc are database dependent. 2.  Does not have cache support. 3.  Data is not secured. Why Hibernate ? Hibernate provides following features : 1. Auto DDL support 2. Hibernate query language support(Database independent  query) 3. Cache support 4. Primary key generator 5. Validations support 6. Exception Free(There is no compile time exception) 7. ORM support State of objects during CRUD operation If we are doing CRUD operation (e.g. Create, Insert, Update, Delete) then we have to pass object. There are three types of object in Hibernate.               1. Transient object               2. Persistent object               3. Detached object What is Cascade...