title: Use hibernate entities from external jar
body: <p>I have created jhipster microservice application, in which i have added a "demographics.jar" file as a dependency.</p>
  
  <p>demographics.jar file contains a class "Address.java" which is JPA entity.</p>
  
  <p>when i refer this class from my code, it generated following error</p>
  
  <pre><code>org.hibernate.AnnotationException: @OneToOne or @ManyToOne on com.example.jobcard.domain.JobCard.location references an unknown entity: com.example.geographics.domain.Address
      at org.hibernate.cfg.ToOneFkSecondPass.doSecondPass(ToOneFkSecondPass.java:109)
      at org.hibernate.cfg.Configuration.processEndOfQueue(Configuration.java:1598)
      at org.hibernate.cfg.Configuration.processFkSecondPassInOrder(Configuration.java:1521)
      at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1422)
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1846)
      at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:857)
      ... 28 common frames omitted
  </code></pre>
  
  <p>jhipster version is : 3.6.1</p>
  
  <p>jdk verison is : 1.8.0_91</p>
  
  <p>here is the parent pom details :</p>
  
  <pre><code>&lt;parent&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;version&gt;1.4.0.RELEASE&lt;/version&gt;
          &lt;relativePath/&gt;
      &lt;/parent&gt;
  </code></pre>
  
  <p>I have ready many solutions which suggest to edit the persistence.xml file, but persistence.xml file is not generated by jhipster.</p>