What does persistence object means in Hibernate architecture?

后端 未结 6 1848
我寻月下人不归
我寻月下人不归 2021-01-30 06:55

Hibernate is a persistence framework which is used to persist data from Java environment to database.

I am so confused.. if we persist a

6条回答
  •  一整个雨季
    2021-01-30 07:55

    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 objectand its corresponding database record .Does it make sense ?

提交回复
热议问题