Is it OK to have a duplicate generator named defined in the JPA persistence unit?
<p>My situation is described here:</p>

<p><a href="https://stackoverflow.com/questions/20941191/eclipse-duplicate-generator-named-id-generator-defined-in-this-persistence-uni/29118240">eclipse Duplicate generator named &quot;ID_GENERATOR&quot; defined in this persistence unit</a></p>

<p>However my question is different and the selected answer does not solve it : </p>

<p>"<em>Is it valid to have multiple @SequenceGenerator <strong>with the same name</strong> even though it is used for this purpose <a href="https://stackoverflow.com/questions/5257921/hibernate-how-override-an-attribute-from-mapped-super-class">Hibernate : How override an attribute from mapped super class</a> ?</em>"</p>

<p>If not valid, is there an alternative ?</p>

<p>Thank you very much for your answer.</p>