HIBERNATE - Getting Started With Hibernate

Hibernate Sample Code (Quering the database)

SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();
Session session = sessionFactory.openSession();
ArrayList arrayList = null;

String SQL_STRING = "FROM AppLabsUser as users";
Query query = session.createQuery(SQL_STRING);
ArrayList list = (ArrayList)query.list();

for(int i=0; i<list.size();i++){


Hibernate tutorial
Introduction to Hibernate
Overview of Hibernate
Features of Hibernate
Getting Started with Hibernate
Prepare Database
Create Persistent Java Objects
Mapping POJO With Persistence Layer Using Hibernate Mapping Document
Hibernate Configuration File
Hibernate Sample Code (Inserting new record)
Hibernate Sample Code (Quering the database)
Hibernate O/R Mapping
Hibernate Mapping In Depth
Hibernate Query language
Hibernate Complete Example
Use of this website constitutes acceptance of the AllAppLabs.com Terms and Conditions