[ 
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: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to