title: how to fetch data of remote side database in hibernate
body: <p>I developing a application of <strong>reporting tool</strong>.<br>
  I have to connect multiple remote side database with their credentials and fetching the database value.<br>
  How can I do this?<br>
  This is my  hibernate configuration file </p>
  
  <pre><code>&lt;hibernate-configuration&gt;
    &lt;session-factory&gt;
  
      &lt;property name="hibernate.dialect"&gt;org.hibernate.dialect.MySQL5InnoDBDialect&lt;/property&gt;
      &lt;property name="dialect"&gt;org.hibernate.dialect.MySQLDialect&lt;/property&gt;
  
      &lt;property name="show_sql"&gt;true&lt;/property&gt;
     &lt;property name="hibernate.hbm2ddl.auto"&gt;update&lt;/property&gt;
  
      &lt;property name="hibernate.connection.SetBigStringTryClob"&gt;true&lt;/property&gt;
  
      &lt;property name="hibernate.jdbc.batch_size"&gt;0&lt;/property&gt;
  
    &lt;/session-factory&gt;
  &lt;/hibernate-configuration&gt;
  </code></pre>