title: Issue with hibernate entity manager on multiple servers
body: <p>I am using hibernate in dropwizard framework. 
  Configuration of application: having a loadbalancer for the backend for multiple servers. 
  The issue is when i am saving a new record, the records get saved in the database. But when i am trying to fetch the record from different server pointing to same database, i am not able to get the newly created row. It only exist in that server on which it was created.
  Hibernate cache are marked as false in the properties.
  Can anyone pls suggest what i am missing? or any tips.</p>
  
  <p>Code :</p>
  
  <h1>Save api:</h1>
  
  <pre><code>@Transactional
  public ID save(T entity) {
      EntityManager em = getEntityManager();
      if (em.contains(entity) ) {
          em.merge(entity);
      } else {
          em.persist(entity);
      }
      em.flush();
      return (ID) entity.getId();
  }
  </code></pre>
  
  <h1>GET api:</h1>
  
  <pre><code>  public T findOne(final ID id) {
      EntityManager em = getEntityManager();
  
      T entity = em.find(getEntityClass(), id);
      em.flush();
      return entity;
  }
  </code></pre>