Some Important Methods Of Hibernate
Previous Home Next

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();
Previous Home Next

Tolal:0 Click:

Show All Comments

Did not find what you were looking for leave your name and message. We will revert within 24 hours
Comment / Feedback: