title: Initialize all properties of a proxy in Hibernate
body: <p>I´m using Spring JpaRepository to access the database. My goal is to create a method which finds one entity and fully initializes it. Currently I´m doing it like that:</p>
  
  <pre><code>Hibernate.initialize(business.getCollectionA());
  Hibernate.initialize(business.getCollectionB());
  Hibernate.initialize(business.getCollectionC());
  </code></pre>
  
  <p>So I search for a method which initializes all collections at once like that:</p>
  
  <pre><code>Hibernate.initializeAll(business);
  </code></pre>