-
Notifications
You must be signed in to change notification settings - Fork 308
The associated query to multiple tables #300
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
Comments
Sounds like you are wanting to do two (separate) queries? |
I want to get the customers(isMale) 's orders(isCash), so I don't know how to write the |
Do objectBox support multiple table queries like SQL? |
At the moment we do not offer much convenience here for cases like yours (feature requests are pending). This would be how you get the data, put this in some method:
Then you would subscribe to changes of those to classes using a general subscribe call:
In your DataObserver implementation you should check if the class is either Customer or Order and in that case call your method triggering the method with the query. This is not optimal and we are working on reducing the amount of required code, but it should work. |
We need the same for many-to-many query |
Please vote for #59. |
If the tables like this, I want use the
DataSubscription
to observer the data which Customer is male and Order isCash? What should I do ?Thank you very much !The text was updated successfully, but these errors were encountered: