[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-9216) JPA: Null text range in GenericGenerator validation process
Dmitry Geraskov (JIRA)
jira-events at lists.jboss.org
Wed Jun 22 08:11:23 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-9216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dmitry Geraskov resolved JBIDE-9216.
------------------------------------
Resolution: Done
> 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.M2, 3.3.0.M3
>
> Attachments: JBIDE-9216.patch
>
>
> 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
More information about the jbosstools-issues
mailing list