-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
Missing .filterMany() conditions for fetched associations on query beans after 15.6.0 #3536
Comments
What is your annotation processing setup? Are you using kotlin-querybean-generator or querybean-generator etc |
It's I already started stripping down the project to create a reproducer, almost ready to upload. Still taking out as much as possible to make sure the issue is not caused by some unintended interference. |
I'd like to point out that #3473 touched the regular And yes, using |
Repository which can be used to reproduce the problem, but I think all that is needed to reproduce the problem is to use |
Awesome, thanks !!! |
Expected behavior
After upgrading to >= 15.6.0 only ManyToMany/OneToMany are supposed to have .filterMany() conditions for filtering associated beans.
Actual behavior
After upgrading to >= 15.6.0 all relationships lost .filterMany() conditions on query beans for filtering which associated beans that are fetched, regardless of the relationship type.
Reverting to < 15.6.0 restores them without issue.
Steps to reproduce
EDIT: Repository which can be used to reproduce the problem: https://github.com/davidhiendl/ebean-issue-3536
Some example entities + query for sanity check (maybe I misunderstood something?)
Entities:
Example query:
Generated query beans
When investigating the generated query beans the tenant relation generated as:
QAuthUser -> lateinit var tenants: QAssocAuthTenant<QAuthUser>
and
QAssocAuthTenant<R> : TQAssocBean<de.dhswt.bsmxcd.schemasql.core.auth.AuthTenant,R,QAuthTenant>
Which I believe is incorrect and should have generated as inheriting and implementing methods from
TQAssocMany
The text was updated successfully, but these errors were encountered: