Steps to use hibernate in the project

Hello;

What are the summary steps to use hibernate in the project?
What I know is the following, but I need to know if I am missing something:

  1. If it is maven project, then I have to add the dependency.
  2. The xml configuration.
  3. At the class that represents the database table, import the following:

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

But I am sure I am missing to know other steps, and I am missing to know what I have to import in the class that will do the save and select statement from the database.

Can someone advise me please?

Regards
Bilal

The best place to start is the project page where you can find:

If you read those two resources, you are going to find more than the answer to your current question.