title: Same table name for two JPA persistence units with NetBeans
body: <p>My persistence.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"&gt;
      &lt;persistence-unit name="first" transaction-type="RESOURCE_LOCAL"&gt;
          &lt;provider&gt;org.eclipse.persistence.jpa.PersistenceProvider&lt;/provider&gt;
          &lt;class&gt;database.first.entity.Grupe&lt;/class&gt;
          &lt;properties&gt;
               &lt;property name="javax.persistence.jdbc.url" value="jdbc:mysql://*****/first"/&gt;
               &lt;property name="javax.persistence.jdbc.password" value="*****"/&gt;
               &lt;property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver"/&gt;
               &lt;property name="javax.persistence.jdbc.user" value="*****"/&gt;
          &lt;/properties&gt;
      &lt;/persistence-unit&gt;
      &lt;persistence-unit name="second" transaction-type="RESOURCE_LOCAL"&gt;
          &lt;provider&gt;org.eclipse.persistence.jpa.PersistenceProvider&lt;/provider&gt;
          &lt;class&gt;database.second.entity.Darbuotojas&lt;/class&gt;
          &lt;class&gt;database.second.entity.Grupe&lt;/class&gt;
          &lt;properties&gt;
                &lt;property name="javax.persistence.jdbc.url" value="jdbc:mysql://*******/second"/&gt;
                &lt;property name="javax.persistence.jdbc.password" value="*****"/&gt;
                &lt;property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver"/&gt;
                &lt;property name="javax.persistence.jdbc.user" value="*****"/&gt;
          &lt;/properties&gt;
      &lt;/persistence-unit&gt;
  &lt;/persistence&gt;
  </code></pre>
  
  <p>As you see there is one <strong>Grupe</strong> class in each persistence unit. But when I try to create two <code>@Entity</code> classes with same <strong>Grupe</strong> name (but in different packages, therefore this shouldn't be a problem) NetBeans gives me error:</p>
  
  <pre><code>Duplicated entity name. Class database.first.entity.Grupe is using the same name.
  </code></pre>
  
  <p>Is there any annotations witch could solve this problem, because I don't want to create classes with different class names like <strong>GrupeFirst</strong> and <strong>GrupeSecond</strong>.</p>