title: FetchType EAGER not working in Windows/MySQL 5.7
body: <p>In a Java project that uses Hibernate, I am having difficulties to make a FetchType EAGER work on my development database, which runs under Windows 10 and uses MySQL 5.7 (I also tried MySQL 8).</p>
  <p>The strange fact is that when I run the exact same code with the exact same database structure and data (dumped and imported from a machine to another), it does work on a Centos 7/MySQL 5.6 environment.
  If I run the code on my Windows machine but connecting to the Centos database, it does work too.
  If I run the code on my Centos machine connecting to my Windows database, it does not work.</p>
  <p>The version of Hibernate is 5.4.10.</p>
  <p>Please find below the code that I use (names of attributes, variables and tables changed, so there might be some mistyping):</p>
  <p>Entity:</p>
  <pre><code>@Entity
  @SQLInsert(sql=&quot;INSERT IGNORE INTO table1(t2_id,t3_id,order) VALUES(?,?,?)&quot;)
  public class Table1 implements Serializable
      {
  
      //----------------------------------------------------
      /*
          Attributes / fields definitions :
      */
      public  Table2  t2;
      public  Table3  t3;
      public  Integer order;
  
      //---------------------------------
      // STATIC FACTORIES
      //---------------------------------
      //----------------------------------------------------
      /**
          Get the list of relations between table2 and table3
      */
      static public ArrayList&lt;Table1&gt; find
          (
          Session     inSession,
          Table3      inTable3
          )
          {
          TypedQuery&lt; Table1 &gt; vQuery = inSession.createQuery( &quot;SELECT t1 FROM Table1 t1 WHERE t1.t3 = :int3&quot;, Table1.class );
          vQuery.setParameter( &quot;int3&quot;, inTable3 );
  
          return new ArrayList&lt;&gt;( vQuery.getResultList() );
          }
      }
  </code></pre>
  <p>XML:</p>
  <pre><code>&lt;?xml version = &quot;1.0&quot; encoding = &quot;utf-8&quot;?&gt;
  &lt;!DOCTYPE hibernate-mapping PUBLIC
  &quot;-//Hibernate/Hibernate Mapping DTD//EN&quot;
  &quot;hltp://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd&quot;&gt;
  
  &lt;hibernate-mapping package=&quot;...&quot; default-access=&quot;field&quot;&gt;
      &lt;class name = &quot;Table1&quot; table = &quot;table1&quot; dynamic-update=&quot;true&quot;&gt;
  
          &lt;meta attribute = &quot;class-description&quot;&gt;
           ...
          &lt;/meta&gt;
  
          &lt;composite-id&gt;
              &lt;key-many-to-one name=&quot;t2&quot; class=&quot;Table2&quot;   column=&quot;t2&quot; lazy=&quot;false&quot;/&gt;
              &lt;key-many-to-one name=&quot;t3&quot; class=&quot;Table3&quot;   column=&quot;t3&quot; lazy=&quot;false&quot;/&gt;
          &lt;/composite-id&gt;
  
          &lt;property name = &quot;order&quot; column = &quot;order&quot; not-null=&quot;true&quot;/&gt;
  
      &lt;/class&gt;
  
  &lt;/hibernate-mapping&gt;
  </code></pre>
  <p>Call of factory:</p>
  <pre><code>ArrayList&lt; Table1 &gt; vRelations = Table1.find( fDbSession, t3 );
  </code></pre>
  <p>On the Centos database, it works like a charm, I get my Table1 elements containing initialized Table2 and Table3 elements.
  On the Windows database, all I get is a &quot;HibernateProxy&quot; element.</p>