title: Why Lazy loading not working in one to one association?
body: <pre><code>@Entity
  public class Person {
      @Id
      @GeneratedValue
      private int personId;
  
      @OneToOne(cascade=CascadeType.ALL, mappedBy="person", fetch=FetchType.LAZY)
      private PersonDetail personDetail;
  
      //getters and setters
  }
  
  @Entity
  public class PersonDetail {
      @Id
      @GeneratedValue
      private int personDetailId;
  
      @OneToOne(cascade=CascadeType.ALL,fetch=FetchType.LAZY)
      private Person person;
  
          //getters and setters
  
      }
  </code></pre>
  
  <p>when i do </p>
  
  <pre><code> Person person1=(Person)session.get(Person.class, 1);
  </code></pre>
  
  <p>i see two queries being fired. one for fetching person data and another for person detail data. </p>
  
  <p>As per my understanding only 1 query should have been fired that is for fetching person data not for person detail data as i have mentioned
   lazy loading. Why personDetail data is getting fetched along with person data ?</p>