What's the advantage of load() vs get() in Hibernate?

前端 未结 10 2691
感情败类
感情败类 2020-12-02 04:58

Can anyone tell me what\'s the advantage of load() vs get() in Hibernate?

10条回答
  •  情深已故
    2020-12-02 05:19

    A: This is explained in the hibernate reference. One difference was performance and the other one is that load throws an unrecoverable Exception when no Object is found for the ID.

    More details here

提交回复
热议问题