JPA: Null text range in GenericGenerator validation process
-----------------------------------------------------------
Key: JBIDE-9216
URL:
https://issues.jboss.org/browse/JBIDE-9216
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Hibernate
Affects Versions: 3.3.0.M2
Reporter: Dmitry Geraskov
Assignee: Dmitry Geraskov
Priority: Critical
Fix For: 3.3.0.M3
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)
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira