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

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Sep 19, 2014

Member

Which Querydsl version do you use?

Member

timowest commented Sep 19, 2014

Which Querydsl version do you use?

@glau2

This comment has been minimized.

Show comment
Hide comment

glau2 commented Sep 20, 2014

3.4.1

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Sep 20, 2014

Member

And whick jdk version do you use?

Member

timowest commented Sep 20, 2014

And whick jdk version do you use?

@glau2

This comment has been minimized.

Show comment
Hide comment
@glau2

glau2 Sep 20, 2014

Java 1.7

glau2 commented Sep 20, 2014

Java 1.7

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Sep 30, 2014

Member

Released in 3.5.0

Member

timowest commented Sep 30, 2014

Released in 3.5.0

@glau2

This comment has been minimized.

Show comment
Hide comment
@glau2

glau2 Oct 6, 2014

Many Thanks!

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