What does Hibernate.initialize do?

前端 未结 4 1102
遇见更好的自我
遇见更好的自我 2021-01-04 06:19

What does Hibernate.initialize do?
Usually referred documentation talk only about

Hibernate.initialize(entity.lazyCollection)

Is ther

4条回答
  •  盖世英雄少女心
    2021-01-04 07:17

    I would say yes if the Entity has a lazily initialized field e.g. some large BLOB or CLOB data or a lazy one-to-one association. See 20.1.8. in the documentation for the former and 20.1.3 for the latter.

    See also:

    20.1.4. Initializing collections and proxies

提交回复
热议问题