-
Notifications
You must be signed in to change notification settings - Fork 228
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
Using more than one @XStreamAlias annotation for same element #104
Comments
You can do this without annotations using the XStream.alias() and XStream.aliasField() methods. However, this is no usual setup and you have to know, that a second alias definition will clobber the first one at serialization time, but will remain active for deserialization. |
@joehni FWIW, I would also like to see |
@joehni I would like |
Quite honestly I don't understand why this got closed so fast. It would be easy to make the annotation repeatable. The currenty state forces you to stray your meta data in annotations and extra-code when you want to have more than one alias. I support the original request. @tetianakh also delivered a scenario which developers find themselves in quite frequently. |
So I keep it open for now... |
Improvement. I would like to have an implementation that support:
Where xml node has been named any present aliases.
Thank's
The text was updated successfully, but these errors were encountered: