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

Result cannot be instatiated deserializing with jackson #901

Open
steelxt opened this issue Oct 17, 2019 · 1 comment
Open

Result cannot be instatiated deserializing with jackson #901

steelxt opened this issue Oct 17, 2019 · 1 comment

Comments

@steelxt
Copy link

steelxt commented Oct 17, 2019

how to solve this?:

com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of io.requery.query.Result (no Creators, like default construct, exist): abstract types either need to be mapped to concrete types, have custom deserializer, or contain additional type information`

@npurushe
Copy link
Contributor

You would need to ignore the Result from Serialization or have an adapter that fetches the results into the object and serializes them. The Result class itself is not mean't to be serialized.

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