You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Vano Beridze (JIRA)" <ji...@apache.org> on 2019/06/30 14:26:00 UTC

[jira] [Updated] (NETBEANS-2778) Java EE 8 project incorrect schema definition in persistence.xml

     [ https://issues.apache.org/jira/browse/NETBEANS-2778?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vano Beridze updated NETBEANS-2778:
-----------------------------------
    Description: 
# Create maven java ee 8 web project
 # open persistence.xml

<?xml version="1.0" encoding="UTF-8"?>
 <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence [http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd]">
     <persistence-unit name="">
         
     </persistence-unit>
 </persistence>

 

It should be like
{{<persistence xmlns=}}{{"[http://xmlns.jcp.org/xml/ns/persistence]"}}
{{    }}{{xmlns:xsi=}}{{"[http://www.w3.org/2001/XMLSchema-instance]"}} {{version=}}{{"2.2"}}
{{    }}{{xsi:schemaLocation=}}{{"[http://xmlns.jcp.org/xml/ns/persistence] [http://xmlns.jcp.org/xml/ns/persistence/persistence_2_2.xsd]"}}{{>}}
{{    }}{{<!-- Define persistence unit -->}}
{{    }}{{<persistence-unit name=}}{{"my-persistence-unit"}}{{>}}
{{    }}{{</persistence-unit>}}
{{</persistence>}}
 

 

  was:
# Create maven java ee 8 web project
 # open persistence.xml

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
    <persistence-unit name="">
        
    </persistence-unit>
</persistence>

 

 


> Java EE 8 project incorrect schema definition in persistence.xml
> ----------------------------------------------------------------
>
>                 Key: NETBEANS-2778
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2778
>             Project: NetBeans
>          Issue Type: Bug
>            Reporter: Vano Beridze
>            Priority: Major
>
> # Create maven java ee 8 web project
>  # open persistence.xml
> <?xml version="1.0" encoding="UTF-8"?>
>  <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence [http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd]">
>      <persistence-unit name="">
>          
>      </persistence-unit>
>  </persistence>
>  
> It should be like
> {{<persistence xmlns=}}{{"[http://xmlns.jcp.org/xml/ns/persistence]"}}
> {{    }}{{xmlns:xsi=}}{{"[http://www.w3.org/2001/XMLSchema-instance]"}} {{version=}}{{"2.2"}}
> {{    }}{{xsi:schemaLocation=}}{{"[http://xmlns.jcp.org/xml/ns/persistence] [http://xmlns.jcp.org/xml/ns/persistence/persistence_2_2.xsd]"}}{{>}}
> {{    }}{{<!-- Define persistence unit -->}}
> {{    }}{{<persistence-unit name=}}{{"my-persistence-unit"}}{{>}}
> {{    }}{{</persistence-unit>}}
> {{</persistence>}}
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists