Hi Renjith,
Hibernate is driven by XML configur,
March 8, 2007 at 6:32 PM
Hi Renjith,
Hibernate is driven by XML configuration files to map classes to the database and eliminate need for respective SQL so you will not find this query in a code. It handles all create-read-update-delete operatioin using simple API no SQL.
To insert your data, you need to add two lines here. session =sessionFactory.openSession(); Transaction tx = session.beginTransaction(); . . . session.save(contact); tx.commit();