Submitted by sneha on Tue, 10/13/2015 - 00:20
CRUD operations are Create(save), Read(select), Update(update) and Delete(delete).
Examples discussed here need to be tried out on top of the lab done @ http://javajee.com/lab-your-first-hibernate-43-program.
Session
Select, Save, update and delete operations in hibernate should be called within a session:
SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();
Submitted by sneha on Mon, 10/12/2015 - 02:41
We will write a simple hibernate application to get started with hibernate.
Before starting, you should:
Submitted by sneha on Mon, 10/12/2015 - 02:35
Submitted by sneha on Mon, 10/12/2015 - 01:41
This note book will help you to get started with Hibernate 4 like setting up environment, inheritance, mappings, HQL and the Criterial API.
All the examples in this book is tested with Hibernate version 4.3.11.
Please refer to the hibernate references section to see the reference books that we use for learning and training purposes.
Submitted by sneha on Thu, 11/14/2013 - 04:03
Hibernate provide Criteria Queries as an object-oriented alternative to HQL. Criteria Query is used to modify the objects and provide restriction for the objects. Many complex queries in HQL or even SQL may become larger over a period of time and spread over many lines; and will be difficult to update and maintain. We have already seen HQL in http://www.javajee.com/introduction-to-hibernate-query-language-hql-0.
Pages