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

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

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

10条回答
  •  天命终不由人
    2020-12-02 05:07

    load will return a proxy object.

    get will return a actual object, and returns null if it wont find any object.

提交回复
热议问题