| Summary: | Schema gen doesn't handle multiple namespaces/packages/schemas | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Paul Fullbright <paul.fullbright> | ||||
| Component: | JAXB | Assignee: | Tran Le <tranle1> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | jolene.moffitt, neil.hauge | ||||
| Version: | 3.0 | ||||||
| Target Milestone: | 3.0 M3 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows Vista | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Paul Fullbright
I'm not seeing the same thing when I try to reproduce this. When I generate from multiple packages I get 1 schema with types defined for all of the classes in all of the specified packages. No namespace is defined. I had the same experience using MOXy and the JAXB RI schema generation. I assume the difference is in the classes. I don't have a namespace defined, or any JAXB annotations to begin with in this case, so I assume side-steps the problem you are encountering. So my observations would probably only apply to that corner case. Yes, I discovered this while trying to determine what the @XmlSchema.location() value was for. I have two packages with namespaces defined on the package annotations. When there are no package annotations, the default namespace is "", and so all packages go into one namespace. You'd see similar things if you actually set all packages to have the same namespace. So the issue is really multiple namespaces, not multiple packages, per se. Created attachment 180910 [details]
example project
Here's a project with two packages, two namespaces, and should generate two schemas.
Completed in M3 The final implementation have the schema generation create files with the namespace as file name. In the case where there is no namespace specified, the schema file name will be the default file name given by the user. If multiple schemas are generated, the file name sequence number will be incremented. Verified in Build I-3.3.0-20101209114749 Verified multiple schemas are created using namespace, if not provided schemas are created with default or file name given by user. See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.0_M3 |