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

JAXB2 Simplify plugin #3

Open
skinkie opened this issue Jan 19, 2018 · 8 comments
Open

JAXB2 Simplify plugin #3

skinkie opened this issue Jan 19, 2018 · 8 comments

Comments

@skinkie
Copy link
Contributor

skinkie commented Jan 19, 2018

One of the problems of the current NeTEx XSD is 'xs:choice' to model inheritance. For the programmer the resulting code form xjc is terrible. For all choice elements explicit casting is required. One of the solutions for this might be https://github.com/highsource/jaxb2-basics/wiki/JAXB2-Simplify-Plugin

I am also open for alternative solutions, which may or may not require some transformation code or even a custom netex-java-model, which is able to parse NeTEx but lacks the pain with JAXBElement.

@sunghangga
Copy link

sunghangga commented Mar 29, 2021

One of the problems of the current NeTEx XSD is 'xs:choice' to model inheritance. For the programmer the resulting code form xjc is terrible. For all choice elements explicit casting is required. One of the solutions for this might be https://github.com/highsource/jaxb2-basics/wiki/JAXB2-Simplify-Plugin

I am also open for alternative solutions, which may or may not require some transformation code or even a custom netex-java-model, which is able to parse NeTEx but lacks the pain with JAXBElement.

Can this jaxb source code used for generate another netex scheme profile? for example is BISON Netex profile. Thank you @skinkie

@skinkie
Copy link
Contributor Author

skinkie commented Mar 29, 2021

The BISON NeTEx profile is not created for generating source code, but convenience for validation. But yes, you could create source code for it.

@sunghangga
Copy link

sunghangga commented Mar 29, 2021

The BISON NeTEx profile is not created for generating source code, but convenience for validation. But yes, you could create source code for it.

Thank's for your response. Would you like to give me some explanation or example for implement BISON Netex profile to this netex-java-model source code? I will be very helpful @skinkie

@skinkie
Copy link
Contributor Author

skinkie commented Mar 29, 2021

For the BISON profile you can use this repository as-is. The BISON profile is limited to the "NeTEx-CEN" repository for which this profile generates its code. Not leading you in a direction you should not go. And if you have any questions concerning BISON NeTEx please participate in the next "Architectuurwerkgroep" at the April 22th.

@sunghangga
Copy link

sunghangga commented Mar 29, 2021

For the BISON profile you can use this repository as-is. The BISON profile is limited to the "NeTEx-CEN" repository for which this profile generates its code. Not leading you in a direction you should not go. And if you have any questions concerning BISON NeTEx please participate in the next "Architectuurwerkgroep" at the April 22th.

Fine, thank you for your kind response. How I can join that "Architectuurwerkgroep"? @skinkie

@skinkie
Copy link
Contributor Author

skinkie commented Mar 29, 2021

Fine, thank you for your kind response. How I can join that "Architectuurwerkgroep"? @skinkie

Just ask for an invitation; https://bison.dova.nu/contactinformatie-bison

@sunghangga
Copy link

Fine, thank you for your kind response. How I can join that "Architectuurwerkgroep"? @skinkie

Just ask for an invitation; https://bison.dova.nu/contactinformatie-bison

Hi Stefan, I would to ask how I can do import data with this jaxb and insert to database with BISON profile? or do you have some best solution? Thank you. @skinkie

@skinkie
Copy link
Contributor Author

skinkie commented Apr 6, 2021

Are you looking for paid consultancy?

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