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

JDO Support ArrayList as ListPath #938

Closed
glau2 opened this issue Sep 19, 2014 · 6 comments
Closed

JDO Support ArrayList as ListPath #938

glau2 opened this issue Sep 19, 2014 · 6 comments
Milestone

Comments

@glau2
Copy link

@glau2 glau2 commented Sep 19, 2014

Currently whenever an entity have a variable declare as ArrayList, this will generate as SimplePath below

SimplePath<java.util.ArrayList<User>> userList = createSimple("userList", java.util.ArrayList.class);

For variable declare as List, this will be generated as ListPath below:

ListPath<User, QUser> userList;

In most case, it's best practice to use the interface type. However for application developed as GWT, this would mean the compiled JavaScript code would need to contain all implementation of the interface class. This would mean large size download JS code and longer compile time.

Related Info:
http://stackoverflow.com/questions/3059787/gwt-using-listserializable-in-a-rpc-call
http://stackoverflow.com/questions/6059211/in-gwt-why-shouldnt-a-method-return-an-interface

Please could we make the implementation class of the collection API be compiled in the same types as their interface e.g. List and ArrayList both will compile as ListPath

@timowest
Copy link
Member

@timowest timowest commented Sep 19, 2014

Which Querydsl version do you use?

@glau2
Copy link
Author

@glau2 glau2 commented Sep 20, 2014

3.4.1

@timowest
Copy link
Member

@timowest timowest commented Sep 20, 2014

And whick jdk version do you use?

@glau2
Copy link
Author

@glau2 glau2 commented Sep 20, 2014

Java 1.7

@timowest
Copy link
Member

@timowest timowest commented Sep 30, 2014

Released in 3.5.0

@glau2
Copy link
Author

@glau2 glau2 commented Oct 6, 2014

Many Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.