Hibernate is a persistence framework which is used to persist data from Java environment to database.
I am so confused.. if we persist a
According to the figure , you configure hibernate.properties
or some XML mapping
to map a database table to a java object which is called persistent object
.
Then in your application
, you use the persistent object
as a normal java object to
manipulate its state . You can pass persistent object
to hibernate .Hibernate will then generate and issue the necessary SQL to DB to synchronize the state of the persistent object
and its corresponding database record .Does it make sense ?