Test Case:
Create entity with 2 generator annotations: @GenericGenerator, @SequesnceGenerator with the same name
Observe exception:
java.lang.NullPointerException: Null text range for message ID: GENERATOR_DUPLICATE_NAME
at org.eclipse.jpt.jpa.core.internal.validation.DefaultJpaValidationMessages.buildMessage(DefaultJpaValidationMessages.java:52)
at org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.checkForDuplicateGenerators(AbstractPersistenceUnit.java:2362)
at org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.validateGenerators(AbstractPersistenceUnit.java:2350)
at org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.validate(AbstractPersistenceUnit.java:2232)
at org.jboss.tools.hibernate.jpt.core.internal.context.HibernatePersistenceUnit.validate(HibernatePersistenceUnit.java:174)