[
https://issues.apache.org/jira/browse/NETBEANS-2778?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vano Beridze updated NETBEANS-2778:
-----------------------------------
Environment:
11.1 beta2
Java: 1.8.0_192; Java HotSpot(TM) 64-Bit Server VM 25.192-b12
Runtime: Java(TM) SE Runtime Environment 1.8.0_192-b12
System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
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>}}
another problem is that persistence unit is partially defined. I think wizard
should not generate it at all.
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>
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>}}
> 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
> Environment: 11.1 beta2
> Java: 1.8.0_192; Java HotSpot(TM) 64-Bit Server VM 25.192-b12
> Runtime: Java(TM) SE Runtime Environment 1.8.0_192-b12
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
> 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>}}
>
> another problem is that persistence unit is partially defined. I think wizard
> should not generate it at all.
>
>
--
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