jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • castor
  • CASTOR-2798

Generating seperate classes for the nested elements.

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Blocker Blocker
  • Resolution: Unresolved
  • Affects Version/s: 1.2
  • Fix Version/s: None
  • Component/s: Ant task, Maven archetypes
  • Labels:
    None
  • Environment:
    Windows XP, Java 5.0

Description

Hi,

When we try to generate the class file for a XSD containing nested elements of type complex, it is generating a separate class for the same instead of using the class generated for that particular complex type.

For instance in the attached "address.xsd" we have a complex type called Address, which in turn uses City defined in another schema "city.xsd". But castor tries to generate two different classes for the "City", one for in address.xsd and another for city.xsd.

We are using Castor maven plug-in 1.5 for code generation.

Could you please let us know is there any change in the configuration for the maven plug-in 1.0, as this works fine with that version.

PS: Same behavior is observed while using castor ant task of 1.3.

Regards,
Sundeep

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Zip Archive
    issue.zip
    03/Aug/09 9:17 AM
    0.9 kB
    sundeep palavalli
    1. XML File
      Address.xsd 1 kB
    2. XML File
      city.xsd 0.7 kB
    Download Zip
    Show
    Zip Archive
    issue.zip
    03/Aug/09 9:17 AM
    0.9 kB
    sundeep palavalli

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Werner Guttmann added a comment - 07/Sep/09 2:27 PM

If you want me to have a look at this, please provide XML schemas that do not have references to XML schemas not relevant for this issue.

Show
Werner Guttmann added a comment - 07/Sep/09 2:27 PM If you want me to have a look at this, please provide XML schemas that do not have references to XML schemas not relevant for this issue.

People

  • Assignee:
    Unassigned
    Reporter:
    sundeep palavalli
Vote (0)
Watch (0)

Dates

  • Created:
    03/Aug/09 9:17 AM
    Updated:
    07/Sep/09 2:27 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.