why hibernate forcing serialization in session.get method

前端 未结 4 1551
故里飘歌
故里飘歌 2021-01-03 04:48

I see that hibernate\'s session.get() and load() methods is accepting only Serializable objects.

As per my understanding of hibernate, it will generate an SQL statem

4条回答
  •  感情败类
    2021-01-03 05:05

    I think it's because of the support for caching. When using a persistent cache, or any caching that distributes object via network you need to have a way of making sure the objects can be transported in a common format which, in this case, is Java serialization.

提交回复
热议问题