create Hibernate first App 1. Right click on Eclipse 2. choose maven project create packages com.kiran.entity 1. create entity class 2. create mapping file for entity class com.kiran. cfgs 1. create configuration file 2. add db properties com.kiran.test 1. create test class with main method 2. create Configuration class object //Bootstarp / Activate the hibernate Configuration cfg=new Configuration();//org.hibernate.cfg.Configuration; 3. specify the hibernate cfg file name and location cfg.configure("com/kiran/cfgs/hibernate.cfg.xml"); 4. create session factory object //build SessionFactory having all services specified in cfg file and mapping file SessionFactory factory=cfg.buildSessionFactory(); SessionFactory sessionFactory = cfg.buildSessionFactory(); 5. create Session Object by calling opensession method of sessionFactory Session session = sessionfactory.opensession(); 6. create Transaction object for commit and rollback operations Transaction transaction = session.beginTransaction(); save method deprecated update method deprecated