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

alias collection type #306

Closed
adjiandov opened this issue Aug 22, 2022 · 1 comment
Closed

alias collection type #306

adjiandov opened this issue Aug 22, 2022 · 1 comment
Assignees
Labels

Comments

@adjiandov
Copy link

Hello, this is a question before it becomes an issue. I have the following scenario:

Class A { List<TypeA> typesA; }
Class B { List<TypeB> typesB }

I am wandering if there is a way to alias the collection types with the same name and process this type of xml both marshalling and unmarshalling. So I would like to be able to produce/consume the following quasi XML structure:

<classA> <typesA> <type></type> <type></type> </typesA> </classA> <classB> <typesB> <type></type> <type></type> </typesA> </classA>

Where typeA and typeB would both have the same alias 'type'.

Thank you

@joehni joehni self-assigned this Sep 4, 2022
@joehni joehni added the question label Sep 4, 2022
@joehni
Copy link
Member

joehni commented Sep 4, 2022

Hi, you may simple define a field alias for both members.

@joehni joehni closed this as completed Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants