There are some important methods of Hibernate are
save(): method of Session interface is used to persist object.
- public void save (Object o);
delete(): is used to remove a persistent object.
- public void delete(Object o);
refresh(): is used to Synchronized the state of a persistaent logc to the database.
- public void refresh(Object o);
beginTransaction(): is used to start a transaction.
- public Transaction begintransaction();
createQuery(): is used to obtain query object.Query object is used to run sql query.
- public query createquery();