title: Avoiding Hibernate Annotation Exception when using two identically named tables in two different schemas
body: <p>I have two tables, both named Language in two different schemas, lets call them schema1 and schema2.   </p>
  
  <p>When I annotate the models for each of these tables, my code looks like this:
        @Entity
       @Table(name="language", catalog="schema1")
             public class Language {</p>
  
  <pre><code>.....................
  
   @Entity
   @Table(name="language", catalog="schema2")
   public class Language {
  </code></pre>
  
  <p>But when doing this, I get an annotation Exception error as follows:</p>
  
  <p>org.hibernate.AnnotationException: Use of the same entity name twice:  Language</p>
  
  <p>So, does this mean I can't have identically named tables in two different database schemas or am I just annotating my models wrong?</p>
  
  <p>Thank you,</p>
  
  <p>Elliott</p>