What does persistence object means in Hibernate architecture?

后端 未结 6 1904
我寻月下人不归
我寻月下人不归 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:54

    Persistant objects are the classes that in your program that has a representation in the database.

    Example if you have a Car class with the properties NumberPlate, Fuel. The NHibernate configuration will map this to for example a table in the database that is named Car and has these columns corresponding to the Car class properties.

提交回复
热议问题