[jbosstools-issues] [JBoss JIRA] (JBIDE-13570) Multipage persistence.xml editor is not available

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Wed Feb 20 13:48:56 EST 2013


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

Viacheslav Kabanovich edited comment on JBIDE-13570 at 2/20/13 1:47 PM:
------------------------------------------------------------------------

One more correction.
After Eclipse restart, JPA found persistence.xml in source folder 'src/main/resources', displayed it under 'JPA Content', and editor opened correctly. But after I changed source folder to 'src' and then back to 'src/main/resources', it failed to find correct persistence.xml. Hence, all this looks like a failure to update model to correct source folder. The good news is that clean build on the project helps.

When Java EE Project is created from JBoss Central, it is probable that source folders and facets are created in an order for which JPA fails to switch model to correct source folder. So, a possible workaround may be calling one more clean build by the wizard after new project is created and configured.

                
      was (Author: scabanovich):
    One more correction.
After Eclipse restart, JPA found persistence.xml in source folder 'src/main/resources', displayed it under 'JPA Content', and editor opened correctly. But after I changed source folder to 'src' and then back to 'src/main/resources', it failed to find correct persistence.xml. Hence, all this looks like a failure to update model to correct source folder. The good news is that clean build on the project helps.

When Java EE Project from JBoss Central, it is probable that source folders and facets are created in an order for which JPA fails to switch model to correct source folder. So, a possible workaround may be calling one more clean build by the wizard after new project is created and configured.

                  
> Multipage persistence.xml editor is not available
> -------------------------------------------------
>
>                 Key: JBIDE-13570
>                 URL: https://issues.jboss.org/browse/JBIDE-13570
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: hibernate
>    Affects Versions: 4.1.0.Alpha1
>            Reporter: Jiri Peterka
>            Assignee: Koen Aers
>            Priority: Blocker
>             Fix For: 4.1.0.Alpha1
>
>         Attachments: JpaXmlEditor.png, no-multipage-persistence-editor.png
>
>
> Multipage persistence.xml editor is not available, there is just source editor. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list