Skip to content

bugfix: query with embedded entity producing an exception #306

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

Merged

Conversation

bahurski-ivan
Copy link
Contributor

@bahurski-ivan bahurski-ivan commented Jul 11, 2022

lets consider an example:
we have an entity with @Embedded field
embedded field contains a long value

we want to make query where embedded.longVal > 7
but unfortunately there was no way to do so, because if we do where query with:
embedded: {GT: {longVal: 7}}
we will get an exception.
Unsupported field type class <className> for field <embeddedField>

this PR changes schema generation for embedded and allows for such queries to be performed.
(query will look like: embedded: {longVal: {GT: 7}})

@bahurski-ivan bahurski-ivan changed the title bugfix: query with embedded entities producing an exception bugfix: query with embedded entity producing an exception Jul 12, 2022
@bahurski-ivan
Copy link
Contributor Author

@igdianov any chance to merge this?

@igdianov
Copy link
Collaborator

@bahurski-ivan Thank you for contribution. I can also backport it into 0.4.x maintenance branch..

@igdianov igdianov merged commit 5bded30 into introproventures:master Oct 22, 2022
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

Successfully merging this pull request may close these issues.

2 participants