[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-9216) JPA: Null text range in GenericGenerator validation process

Max Rydahl Andersen (JIRA) jira-events at lists.jboss.org
Wed Jun 22 07:49:23 EDT 2011


    [ https://issues.jboss.org/browse/JBIDE-9216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610300#comment-12610300 ] 

Max Rydahl Andersen commented on JBIDE-9216:
--------------------------------------------

I haven't applied the patch but if it applies cleanly it looks like pure improvements which are all eseential for JPA/Dali to work on Eclipse37 with hibernate.

Apply to the m2 branch and trunk please.

> 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