Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To enhance scalaxb to generate classes by prepending Family Name by Default instead of using random sequence #641

Open
raghutiwari opened this issue Nov 24, 2023 · 1 comment

Comments

@raghutiwari
Copy link

Hello,

I am opening this as an enhancement to include the flag "--prepend-family" in Default config in the file: "src/main/scala/scalaxb/compiler/Config.scala"

At Line: 122.

I am not sure if this is the only fix required but I am raising a PR for the same.

I think if we make this change, it can really boost the functionality of scalaxb as right now from my personal experience, if I add more xsd files to generate, the sequencing just mess up and it becomes a tiresome change plus with the numbering, you even dont know which tag is for which .xsd?

Can we do that?

@eed3si9n
Copy link
Owner

I am glad that --prepend-family fixed your issue. Are you collapsing various schemas into one package name that necessitated this? Given that there are some users of scalaxb who are using it at work, changing this default value would break their existing code right? Maybe we should create a troubleshooting guide or something to advertise this option, but I don't know if it's worth breaking all of the generated code in this way. A more canonical fix, I think should be to put classes in different pacakges so the name in XML Schema would be the same in Scala.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants