You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got an abstract class with an enum and I want to use this enum to unmarshalled the class to the correct subclass. That should be possible, and I don't know why it exist this restriction "one-to-one (bijection) relationship"
Thanks,
Didac
The text was updated successfully, but these errors were encountered:
The limitation is due to implementation; although there is also bit of concern that allowing non-bijective mapping means that round-tripping will not work as expected. That is, for some cases having duplicate classes or ids is an actual error condition.
From the issue described here: http://stackoverflow.com/questions/18394819/jackson-polymorphism-how-to-map-multiple-subtypes-to-the-same-class
I've got an abstract class with an enum and I want to use this enum to unmarshalled the class to the correct subclass. That should be possible, and I don't know why it exist this restriction "one-to-one (bijection) relationship"
Thanks,
Didac
The text was updated successfully, but these errors were encountered: