-
Notifications
You must be signed in to change notification settings - Fork 132
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
GenProxyProcessor and Lists #201
Comments
You have a point. That seems strange. |
I could work around this limitation by doing this;
|
I had a look through the JavaDoc of the UseProxy, UseProxyNAme and GenProxy annotations. As far as I can see it's nowhere said, that Collection classes are automatically taken into account when generating proxies. But neither it's said, that they are not considered. |
It would be nice if @GenProxy could support all types supported by GWT RequestFactory out-of-the-box (and there aren't that many as you can see at https://developers.google.com/web-toolkit/doc/latest/DevGuideRequestFactory#transportable). If this can't be automatically detected, maybe something like this would be enough: public enum AssociationType {
SINGLE, SET, LIST
}
public @interface UseProxy {
...
AssociationType associationType() default SINGLE;
} |
Thanks for reporting, I'll look deeper into this. |
Fix issue #201: GenProxyProcessor and Lists (Second try)
Can we close this issue now, as the PR has been merged? |
It is ! ;-) |
If a field has a UseProxy annotation and is of type List or Set, then in the generated Proxy class this field (and its getters and setters) will also be of type List or Set. Extending test case for both scenarios; unfortunately it's not possible to test if the generic type of the List or Set has been generated correctly.
Fix issue #201: GenProxyProcessor and Lists (Second try)
If a field has a UseProxy annotation and is of type List or Set, then in the generated Proxy class this field (and its getters and setters) will also be of type List or Set. Extending test case for both scenarios; unfortunately it's not possible to test if the generic type of the List or Set has been generated correctly. Former-commit-id: 770f013
Fix issue ArcBees#201: GenProxyProcessor and Lists (Second try) Former-commit-id: 798a0d0
Hi,
I have a problem when I try to generate proxies for entities which have collection members:
will generate:
This is not correct, a
List<ChildProxy>
should have been used as the return type ofgetChildren()
.The text was updated successfully, but these errors were encountered: