This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | persistence.xml: mapping-file element | ||
---|---|---|---|
Product: | xml | Reporter: | vladperl <vladperl> |
Component: | Code | Assignee: | issues@xml <issues> |
Status: | NEW --- | ||
Severity: | blocker | CC: | sj-nb |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
vladperl
2009-08-13 22:28:38 UTC
After placing all <mapping-file> elements before <jar-file> elements every things started work. XML validation was successful and application was deployed without problem to Glassfish 3 (build 59). Anyway I believe the issue must be fixed because specification didn't specify explicitly that <mapping-file> element should be always located before <jar-file> element. <mapping-file>META-INF/medenterprise.xml</mapping-file> <mapping-file>META-INF/patient-service.xml</mapping-file> <mapping-file>META-INF/medical-billing.xml</mapping-file> <jar-file>lib/medenterprise-domain.jar</jar-file> <jar-file>lib/patient-service-domain.jar</jar-file> <jar-file>lib/medical-billing-domain.jar</jar-file> <xsd:sequence> Element Requires the elements in the group to appear in the specified sequence within the containing element. xsd is part of specification, mapping-file and jar-file are in sequence elements. > mapping-file and jar-file are in sequence elements.
Then related editor should enforce this rule :)
which one editor, xml or design? I don't see support for mapped-file/jar in design view, and in xml editor you can enter anything you want manually without any restrictions I'm suggesting to enforce some restrictions in xml editor. For example not allow to create tag "mapping-file" below "jar-file" tag. XML Spy has this kind of restrictions and that working good. then it's more like enhancement request for xml >then it's more like enhancement request for xml
You are right it's enhancement. Thank you for supporting idea!
|