title: HibernateProxy.toString lazy initializacion exception
body: <p>I'm getting a weird error while I'm debugging my POC.
  I have 2 entities:</p>
  <pre class="lang-java prettyprint-override"><code>@Getter
  @Setter
  @Entity
  @Table(name = &quot;APPLICANT&quot;)
  public class Applicant implements Serializable {
  
  
      private static final long serialVersionUID = 6060170457948717553L;
  
      @Id
      @Column(name = &quot;applicant_id&quot;, insertable = false, nullable = false)
      private Long applicantId;
  
      @Column(name = &quot;application_id&quot;, unique = true)
      private String applicationId;
  
      @OneToOne(fetch = FetchType.LAZY, optional = false)
      @JoinColumn(name = &quot;application_id&quot;, referencedColumnName = &quot;application_id&quot;, insertable = 
      false, updatable = false)
      private ApplicationEntity applicationEntity;
  
  </code></pre>
  <pre class="lang-java prettyprint-override"><code>@Getter
  @Setter
  @Entity
  @Table(name = &quot;APPLICATION&quot;)
  public class ApplicationEntity implements Serializable{
  
      private static final long serialVersionUID = 7300036359295729197L;
  
      @Id
      @Column(name = &quot;APPLICATION_ID&quot;)
      private String id;
  
      @OneToOne(mappedBy = &quot;applicationEntity&quot;, fetch = FetchType.LAZY)
      private Applicant applicant;
  </code></pre>
  <p>These classes has the repositories interfaces extending from CrudRepository, and in the <code>Applicant</code> repository I have a custom method to get the entity with the applicationId:
  <code>Applicant findByApplicationId(String applicationId);</code>
  But, when I'm debugging, I see the following message in the intellij debuguer on the <code>applicationEntity</code> attribute:</p>
  <p><code>Method threw 'org.hibernate.LazyInitializationException' exception. Cannot evaluate  org.example.postgres.jpa.model.ApplicationEntity$HibernateProxy$qa4PKx8V.toString()</code></p>
  <p>The value <code>qa4PKx8V</code> changes every time that I perform a new test.</p>
  <p>I tried a lot of combinations in the <code>@Join</code> annotation, I've deleted the lombook annotations, I've used the <code>@Transactional</code> annotation either, but is always the same error.</p>
  <p>A key point to note, is that I can get the data from the table with any error, I just see this message in the debugger, so my question is, this is a thing of intellij or something like that? Or I need to fix this with configuration or changing something in my code?</p>
  <p>Thanks.</p>