Differences between session vs session factory - Hibernate?

后端 未结 7 1630
予麋鹿
予麋鹿 2021-01-31 10:35

Do we have any other differences other than the below? Also please validate whether the below are correct

  1. SessionFactory objects are one per applicati
7条回答
  •  不思量自难忘°
    2021-01-31 11:30

    The main difference is that "There will be only one session factory object per hibernate client application. Because the implementation class of SessionFactory interface is singleton Java class".

提交回复
热议问题