-
Notifications
You must be signed in to change notification settings - Fork 4
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
Not possible to map enum to enum, or data class containing aggregated enums #18
Comments
I don't know how you instantiated ShapeShift so it's possible you also did not declare the transformer for ShapeShift, but I see one apparent issue from your code; You put In any case, here is a working example with enum mapping, let me know if you have any questions. (Gist)
|
thanks for quick response. withObjectsupplier is not needed - works without it |
Hi, can you please give me a clue, why collection transformation of aggregated type doesn't work?
the aggregated type in the collection also has it's own mapping
when I do the converstion:
the collection in the target object has elements of type "sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl", instead of Filter. without list, if I use it as scalar type, the transformation works. Am I missing something? |
@victormikhailov77 |
Yes, the bug fixed, confirmed. |
Good luck! We hope ShapeShift will serve you well. If you find any bugs or think of additional features you would like let us know. |
Im trying to create mapping for class containing enums.
Direct mapping enum to enum doesnt work because : Could not find a no-arg constructor or object supplier for class
I tried with supplier, but supplier takes no arguments - it doesn't make sense because we can't have empty enum , it should be constructed from string parameter
I tried different way - in the outer class which aggregated enum, added custom transformer :
Now I have different error, Could not find transformer by type [class OperationTransformer]
The text was updated successfully, but these errors were encountered: